Skip to content

Commit 0e5899d

Browse files
committed
streamline code
1 parent 3ba9a84 commit 0e5899d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

inst/rmarkdown/templates/NPS_DRR/skeleton/skeleton.Rmd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ dataPackage_fileDescript <- c(
102102
```
103103

104104
```{r setup_do_not_edit, include=FALSE}
105-
RRpackages <- c("markdown",
105+
Rpackages <- c("markdown",
106106
"rmarkdown",
107107
"pander",
108108
"knitr",
@@ -112,11 +112,11 @@ RRpackages <- c("markdown",
112112
"tidyverse",
113113
"here")
114114
115-
inst <- RRpackages %in% installed.packages()
116-
if (length(RRpackages[!inst]) > 0) {
117-
install.packages(RRpackages[!inst], dep = TRUE, repos = "https://cloud.r-project.org")
115+
inst <- Rpackages %in% installed.packages()
116+
if (length(Rpackages[!inst]) > 0) {
117+
install.packages(Rpackages[!inst], dep = TRUE, repos = "https://cloud.r-project.org")
118118
}
119-
lapply(RRpackages, library, character.only = TRUE)
119+
lapply(Rpackages, library, character.only = TRUE)
120120
121121
devtools::install_github("EmilyMarkowitz-NOAA/NMFSReports")
122122
library(NMFSReports)

0 commit comments

Comments
 (0)