This is a collection of my commonly used functions.
library("devtools")
devtools::install_github("j23414/jcpackr", build_vignettes=TRUE)
library("jcpackr")
browseVignettes("jcpackr")
?cat_function
Notes to myself.
# create a package
install.packages(c("devtools","roxygen2"))
library("devtools")
library("roxygen2")
create("jcpackr")
# put functions in R folder
# Process documentation
setwd("./jcpackr")
document()
# install local version
setwd("..")
install("jcpackr")
?cat_function
# install github version
devtools::install_github("j23414/jcpackr")
library(jcpackr)
?cat_function
Slightly modified R package instructions from Writing an R Package From Scratch.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.