-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathsoftware.qmd
More file actions
104 lines (89 loc) · 1.95 KB
/
software.qmd
File metadata and controls
104 lines (89 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
---
output: html_document
editor_options:
chunk_output_type: console
---
# Software {.unnumbered}
Examples were calculated in `r R.Version()$version.string` with an effort to use the most recent versions of R packages.
The codes load silently only a few packages:
```{r}
#| eval: false
#| echo: true
#| code-fold: false
library(dplyr)
library(ggplot2)
library(patchwork)
theme_set(theme_light())
```
All other packages are named before the function as in `forecast::ggAcf()` (this code calls the function `ggAcf()` from the package `forecast`) or called immediately before the necessary function use:
```{r}
#| eval: false
#| echo: true
#| code-fold: false
library(fable)
m <- as_tsibble(Y) %>%
model(ARIMA(Y ~ 1, ic = "bic"))
report(m)
```
The R packages used in this book include (in alphabetic order):
```{r}
#| echo: false
packages2cite <- sort(c(
'astsa'
# 'car'
,'caret'
,'downlit'
,'dplR'
,'dplyr'
,'dynlm'
,'Ecdat'
# ,'ecm'
,'fable'
# ,'feasts'
,'fGarch'
,'FinTS'
,'fma'
,'forecast'
,'funtimes'
,'gamlss'
,'gamlss.ggplots'
,'gamlss.util' # Archived on 2020-09-03
,'GGally'
# # ,'ggfortify'
,'ggplot2'
,'ggpubr'
,'ggtime'
,'Kendall'
,'knitr'
,'lawstat'
,'lmtest'
,'lomb'
,'mgcv'
,'mgcViz'
,'nlme'
,'oce'
,'patchwork'
,'plotly'
,'pracma'
,'randtests'
,'readr'
,'rmarkdown'
,'signal'
,'tseries'
,'TSstudio'
,'urca'
,'xml2'))
# Install the packages, if missing
new.packages <- packages2cite[!(packages2cite %in% installed.packages()[,"Package"])]
if (length(new.packages)) {
install.packages(new.packages)
}
# Create a bib database for R packages
knitr::write_bib(c(.packages()
,'base'
,packages2cite
), 'refpackages.bib')
# Form a list with citations
tmp <- paste0("* `", packages2cite, "` [@R-", packages2cite, "]")
```
`r paste(tmp, collapse = "\n")`