Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132929 views
License: OTHER
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"