-
Notifications
You must be signed in to change notification settings - Fork 1
/
99-si.Rmd
36 lines (29 loc) · 852 Bytes
/
99-si.Rmd
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
# Session information
The following packages have been used to generate this document.
```{r include=FALSE}
# automatically create a bib database for R packages
knitr::write_bib(c(
.packages(), 'bookdown', 'knitr', 'rmarkdown', 'msmbstyle'
), 'packages.bib')
```
```{r si}
sessionInfo()
```
## R package setup {#sec-setup2}
To install all necessary packages to run all the code, please execute
the following code:
```{r pkgs, eval=TRUE, echo=FALSE, results='markup', comment=''}
pkgs <- .packages()
pkgs <- paste0('"', pkgs, '"')
cmd <- paste(sort(pkgs), collapse = ", ")
cmd <- paste0("pkgs <- c(", cmd, ")")
cmd <- strwrap(cmd)
for (i in 2:length(cmd))
cmd[i] <- paste0(" ", cmd[i])
cat(cmd, sep = "\n")
```
```{r setup, eval=FALSE}
if (!require("BiocManager"))
install.packages("BiocManager")
BiocManager::install(pkgs)
```