Better practices for statistical computing in r (v2)
25 Sep 2019
Download a zip file of this repo or clone to your computer:
mkdir trainr2
cd trainr2
git clone https://github.com/raredd/trainr2.git
This repo includes an r package. For information on building r packages, see Hadley's intro.
To get started, you should download and install rstudio and also a few r packages.
install.packages(c("devtools", "roxygen2", "testthat", "knitr", "htmlTable", "Gmisc"))
(If you are not using rstudio, you will need to install either Rtools for windows machines, xcode + command line tools for macintosh (you will also need to sign up for a [free] apple id), or install the development tools package, r-base-dev
, for linux distros.)
After installing rstudio and the four packages, run the following in r to see if you are ready to build packages (this function should return TRUE
):
(devtools::has_devel())
Finally, open trainr2.Rproj
to get started.