Contact Us!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: sagemathinc/cocalc-example-files
Path: blob/master/RMarkdown/rticles/generate.ipynb
Views: 987
Kernel: R (R-Project)

Generate all rticles drafts

require(rticles)
Loading required package: rticles
# cleanup system2("bash", args = c("-c", "'rm ctex*'")) system2("bash", args = c("-c", "'find -mindepth 1 -type d -print0 | xargs -0 rm -rf'"), stdout = TRUE)
for (name in getNamespaceExports("rticles")) { fn = paste(name, ".Rmd", sep="") tryCatch({ rmarkdown::draft(fn, template = name, package = "rticles") }, error = function(err) { print(paste("problem:", err)) }) }
[1] "problem: Error in rmarkdown::draft(fn, template = name, package = \"rticles\"): The template 'ctex_template' was not found in the rticles package\n"