/BeginR

This is the repository for the R package I use for teaching R for Physalia

Primary LanguageR

BeginR

This is the repository for the R package BeginR. This R package is primarily aimed at the students of an introductory course about R I am giving in Berlin.

Mind that this package has nothing to do with the package called beginr that is available on CRAN (I may change the name of the package in the future to avoid the confusion).

For students

Installation

  1. install the R package drat (only if you don't have it):
install.packages("drat")
  1. install the R package BeginR:
drat::addRepo("courtiol")
install.packages("BeginR")

Usage

To load the package and access to the vignettes:

library("BeginR")
browseVignettes(package = "BeginR")  ## access vignettes as pdf

For developers only

  1. edit the *.Rnw files directly in sources_vignettes
  2. knit the *.Rnw (that should creates a pdf in the same folder)
  3. open a terminal at the root of the package
  4. run make build to create the *.tar.gz and make install to install

Optional:

  • run make clean to clean-up
  • run make check to check the package properly
  • run make drat to upload to the drat GitHub page