Download and install the latest stable version of R for Mac OS (3.0.2 or higher).
Download the latest stable version of RStudio Desktop for Mac OS.
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")
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.