我尝试使用命令行中的makefile从.pdf
文件创建.Rmd
文件。当我执行makefile时,在Windows 10上,我收到与rmarkdown
包相关的错误。
这是我的makefile:
file.pdf: file.Rmd
R -e ".libPaths(c('~/R/win-library/3.2', 'C:/Program Files/R/R-3.2.2/library')); library('rmarkdown'); render('file.Rmd')"
这是我得到的错误:
.libPaths(c('~/R/win-library/3.2', 'C:/Program Files/R/R-3.2.2/library')); library('rmarkdown'); render('file.Rmd')
Error in library("rmarkdown") : there is no package called 'rmarkdown'
Execution halted
make: *** [file.pdf] Error 1