Browse Source

makefile: added --no-init-file --no-site-file to R opts

Fabian Peter Hammerle 8 years ago
parent
commit
977a36b16f
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Makefile

+ 3 - 1
Makefile

@@ -1,6 +1,8 @@
 all: knit.md knit.pandoc.docx knit.pandoc.html knit.html knit.pandoc.pdf
 
-R_OPTS=--no-save --no-restore --quiet
+# avoid loading dependencies defined in .RData or ~/.Rprofile
+# http://kbroman.org/knitr_knutshell/pages/reproducible.html
+R_OPTS=--no-save --no-restore --no-init-file --no-site-file --quiet
 
 knit.md : main.Rmd
 	R ${R_OPTS} -e "library(knitr); knit(input='$<', output='$@')"