Skip to content

Commit

Permalink
streamline code
Browse files Browse the repository at this point in the history
  • Loading branch information
RobLBaker committed Feb 14, 2024
1 parent 3ba9a84 commit 0e5899d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions inst/rmarkdown/templates/NPS_DRR/skeleton/skeleton.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ dataPackage_fileDescript <- c(
```

```{r setup_do_not_edit, include=FALSE}
RRpackages <- c("markdown",
Rpackages <- c("markdown",
"rmarkdown",
"pander",
"knitr",
Expand All @@ -112,11 +112,11 @@ RRpackages <- c("markdown",
"tidyverse",
"here")
inst <- RRpackages %in% installed.packages()
if (length(RRpackages[!inst]) > 0) {
install.packages(RRpackages[!inst], dep = TRUE, repos = "https://cloud.r-project.org")
inst <- Rpackages %in% installed.packages()
if (length(Rpackages[!inst]) > 0) {
install.packages(Rpackages[!inst], dep = TRUE, repos = "https://cloud.r-project.org")
}
lapply(RRpackages, library, character.only = TRUE)
lapply(Rpackages, library, character.only = TRUE)
devtools::install_github("EmilyMarkowitz-NOAA/NMFSReports")
library(NMFSReports)
Expand Down

0 comments on commit 0e5899d

Please sign in to comment.