vignettes/DevelopmentEnvironmentMacOS.md

R and R Development Tools Installation

R Software Prerequisites

Package Development Prerequisites

Installation of core software development utilities

  1. Download and install XCode from the Mac AppStore.
  2. Within XCode go to Preferences : Downloads and install the Command Line Tools.
  3. Install the MacTeX LaTeX distribution (or another version of LaTeX for the Mac).

R development tools installation

Install Development packages

install.packages("devtools", repos="http://cran.rstudio.com/")
install.packages("roxygen2", repos="http://cran.rstudio.com/")
install.packages("knitr", repos="http://cran.rstudio.com/")
install.packages("markdown", repos="http://cran.rstudio.com/")

Load Libraries

library("devtools")
library("roxygen2")
library("knitr")
library("markdown")

Configuration of Local Environment

Create local .Rprofile

$ cd ~ 
$ vi .Rprofile
First <-function() {
  options(
    repos = c(CRAN = "http://cran.rstudio.com/"),
    browserNLdisabled = TRUE,
    deparse.max.lines = 2)
}

if (interactive()) {
  suppressMessages(require(devtools))
}

Add environment variable to avoid build errors for packages in Suggests entry in the namespace

$ cd ~ 
$ vi .profile
export _R_CHECK_FORCE_SUGGESTS_=FALSE


umd-lib/animalmove documentation built on May 3, 2019, 2:24 p.m.