Templated R Project skeleton with useful structure and packages
-
Install
R
via homebrew or CRAN. -
Just start
R
in the project directory andrenv
will begin setup! (Go grab a ☕ as this will take a while…) -
Install
tidyverse
and other dev dependencies withrenv::install()
.
Package dependencies can sometimes conflict with local r caches.
Typically following the suggested fixes via renv
or homebrew will
resolve the conflicts.
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')
cd ~/
R
then
install.packages("renv")
This template is mainly comprised with the following tools and aggregate
packages.
renv
Tidyverse