Skip to content

Latest commit

 

History

History
48 lines (30 loc) · 1.33 KB

README.md

File metadata and controls

48 lines (30 loc) · 1.33 KB

r-template

Templated R Project skeleton with useful structure and packages

Initial Installation

  1. Install R via homebrew or CRAN.

  2. Just start R in the project directory and renv will begin setup! (Go grab a ☕ as this will take a while…)

  3. Install tidyverse and other dev dependencies with renv::install().

Dependency Conflicts

Package dependencies can sometimes conflict with local r caches. Typically following the suggested fixes via renv or homebrew will resolve the conflicts.

Updating the Documentation and Using .Rmd

Pandoc may be required to generate the README as well as use .Rmd files. If you are using RStudio you can ‘Knit’ or run the following via the cmdline. If you are not using RStudio you may have to install pandoc globally.

To update this file run:

rmarkdown::render('README.Rmd', 'md_document')

OPTIONAL - Install the latest version of renv globally from CRAN with:

cd ~/
R

then

install.packages("renv")

Components

This template is mainly comprised with the following tools and aggregate packages.
renv
Tidyverse