Skip to content

bblodfon/rtemps

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
R
 
 
 
 
img
 
 
 
 
man
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

rtemps

R build status CRAN status Downloads

My personal favourite R templates for doing reproducible data analyses.

Citation

If you want to acknowledge this work, cite it as:

Zobolas, J. (2020). Rtemps: R Templates for Reproducible Data Analyses. GitHub Repository. Retrieved from https://github.com/bblodfon/rtemps

BibTeX citation:

@misc{rtemps,
author = {Zobolas, John},
booktitle = {GitHub repository},
publisher = {GitHub},
title = {{Rtemps: R Templates for Reproducible Data Analyses}},
url = {https://github.com/bblodfon/rtemps},
year = {2020}
}

Available Themes

Install

From CRAN:

install.packages("rtemps")

Note that the package imports among others the libraries DT, ggplot2 and xfun.

Usage

Once the templates are installed, you can use them in 2 ways:

  1. Within the templates in RStudio (highly advised - easiest way):
  • File > New File > R Markdown... > From Template (United HTML Theme)
  • File > New Project... > New Directory > Bookdown Lite project (Bookdown Lite Theme)
  1. By calling the create_rtemp() function which allows you to create a new directory with all the template files inside, ready to be used/rendered.

Notes

United HTML Theme

  • To create and render the template from an R session, run:
rtemps::create_rtemp(dirname = "new-dir", template = "united_html")
rmarkdown::render(input = "new-dir/index.Rmd", output_format = "html_document", output_dir = "new-dir")

Bookdown Lite Theme

  • To create and render the template from the command line, run:
Rscript -e "rtemps::create_rtemp(dirname = 'new-dir', template = 'bookdown_lite')"
cd new-dir
./_build.sh
  • The output of the Bookdown Lite theme is placed under a docs directory, so that it can easily be rendered with GitHub Pages.
  • The Bookdown Lite can be easily converted to a multi-paged document by configuring the split_by property in the _output.yml template file (check the doc).

About

Rmarkdown + Bookdown templates for Reproducible Data Analyses

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published