knitr::spin 不从命令行设置全局块选项
knitr::spin does not set global chunk options from the command line
当我在命令行上使用 knitr::spin 而不是 knitr:knit 使用以下代码生成我的 .md 和 .html 文件时,它完全忽略了全局块选项:
Rscript -e "require(knitr)" -e "knitr::spin('script.R')" \
-e knitr::opts_chunk[['set']](include=FALSE)"
你能告诉我如何使用 spin 从命令行设置全局选项吗?
在spin()
R 脚本之前设置全局块选项,例如
Rscript -e "library(knitr)" -e "knitr::opts_chunk[['set']](include=FALSE)" \
-e "knitr::spin('script.R')"
当我在命令行上使用 knitr::spin 而不是 knitr:knit 使用以下代码生成我的 .md 和 .html 文件时,它完全忽略了全局块选项:
Rscript -e "require(knitr)" -e "knitr::spin('script.R')" \
-e knitr::opts_chunk[['set']](include=FALSE)"
你能告诉我如何使用 spin 从命令行设置全局选项吗?
在spin()
R 脚本之前设置全局块选项,例如
Rscript -e "library(knitr)" -e "knitr::opts_chunk[['set']](include=FALSE)" \
-e "knitr::spin('script.R')"