starticles | R Documentation |
A Generic, Publisher-Independent Template for Writing Scientific Documents in 'rmarkdown'
This package provides a 'rmarkdown' template for authoring scientific documents that is publisher independent. Though the template can be used by itself for many types of scientific documents and likely for submitting publications to many journals, it is primarily intended as a starter format for writing a scientific publication before one has chosen a specific target journal. Once an article has been written, the format can be quickly adapted for use with the rticles package. See the package vignette for more details.
Package: | starticles |
Type: | Package |
Version: | 0.1 |
Date: | 2022-06-07 |
License: | GPL (>= 3) |
David M. Kaplan dmkaplan2000@gmail.com
browseVignettes("starticles")
, rmarkdown, rticles
# Use a temporary directory ---------------------------- owd = getwd() td = tempfile() dir.create(td,recursive=TRUE) setwd(td) print(td) # To see where files will be # Create the draft template ---------------------------- rmarkdown::draft("MYARTICLENAME.Rmd","generic_article","starticles",edit=FALSE) # Render PDF document ---------------------------------- # Fails for me when run using RStudio "Run examples" link in help, # but not when sourced from command line. # Requires recent version of pandoc (provided by RStudio) if (rmarkdown::pandoc_available(version="2.17")) rmarkdown::render("MYARTICLENAME/MYARTICLENAME.Rmd", envir=new.env(parent = globalenv())) # Return to orignal workind directory ------------------ setwd(owd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.