Skip to content

Commit

Permalink
update .gitignore and streamline precompile.R
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhsparks committed Feb 6, 2025
1 parent 1529626 commit 4a719dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
.Rhistory
.RData
.Ruserdata
*.Rproj
.Rproj
inst/doc
*.DS_Store

.DS_Store
*.code-workspace
docs/
Expand Down
6 changes: 2 additions & 4 deletions vignettes/precompile.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# vignettes that depend on internet access need to be precompiled and take a
# while to run
library("knitr")
knit("vignettes/getCRUCLdata.Rmd.orig", "vignettes/getCRUCLdata.Rmd")
knitr::knit("vignettes/getCRUCLdata.Rmd.orig", "vignettes/getCRUCLdata.Rmd")

# remove file path such that vignettes will build with figures
replace <- readLines("vignettes/getCRUCLdata.Rmd")
Expand All @@ -11,8 +10,7 @@ writeLines(replace, fileConn)
close(fileConn)

# build vignettes
library("devtools")
build_vignettes()
devtools::build_vignettes()

# move resource files to /doc
resources <-
Expand Down

0 comments on commit 4a719dc

Please sign in to comment.