Skip to content

Commit

Permalink
Use knit + latexmk to compile .rnw files
Browse files Browse the repository at this point in the history
  • Loading branch information
jlelong committed Mar 31, 2020
1 parent 0bf0108 commit d454bcf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,8 @@
{
"name": "Compile Rnw files",
"tools": [
"rnw2pdf"
"rnw2tex",
"latexmk"
]
}
],
Expand Down Expand Up @@ -738,11 +739,11 @@
"env": {}
},
{
"name": "rnw2pdf",
"name": "rnw2tex",
"command": "Rscript",
"args": [
"-e",
"knitr::knit2pdf('%DOCFILE%')"
"knitr::opts_knit$set(concordance = TRUE); knitr::knit('%DOCFILE_EXT%')"
],
"env": {}
}
Expand Down

0 comments on commit d454bcf

Please sign in to comment.