Skip to content

Commit

Permalink
code_chunks_to_scripts.r edited to point to new folder (workshop) whe…
Browse files Browse the repository at this point in the history
…re rmds are now located
  • Loading branch information
andybeet committed Aug 4, 2023
1 parent 9b1c930 commit 9a1c831
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data-raw/code_chunks_to_scripts.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ rmd.list<-list("human_dimensions_MAB.Rmd", "LTL_MAB.Rmd", "macrofauna_MAB.Rmd",
# create r scripts from rmd
for (i in rmd.list) {
options(knitr.duplicate.label = 'allow') #allows named chunks
purl <- knitr::purl(here::here("docs", i))
purl <- knitr::purl(here::here("workshop", i))
knitr::read_chunk(purl)
chunks <- knitr:::knit_code$get()
invisible(mapply(function(chunk, name) {
Expand Down

0 comments on commit 9a1c831

Please sign in to comment.