Эх сурвалжийг харах

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

Fabian Peter Hammerle 8 жил өмнө
parent
commit
977a36b16f
1 өөрчлөгдсөн 3 нэмэгдсэн , 1 устгасан
  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
 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
 knit.md : main.Rmd
 	R ${R_OPTS} -e "library(knitr); knit(input='$<', output='$@')"
 	R ${R_OPTS} -e "library(knitr); knit(input='$<', output='$@')"