pkg <- read.dcf("DESCRIPTION", fields = "Package")[1] title <- read.dcf("DESCRIPTION", fields = "Title")[1] description <- gsub("\n"," ",read.dcf("DESCRIPTION", fields = "Description")[1]) URL <- read.dcf('DESCRIPTION', fields = 'URL')[1] owner <- strsplit(URL,"/")[[1]][4] repo <-strsplit(URL,"/")[[1]][5]
r pkg
: r title
r description
If you use r pkg
, please cite:
r utils::citation(pkg)$textVersion
if(!require("remotes")) install.packages("remotes") remotes::install_github("`r paste(owner,repo,sep='/')`") library(`r pkg`)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.