Explorar el Código

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

Fabian Peter Hammerle hace 8 años
padre
commit
977a36b16f
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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='$@')"