pkg <- read.dcf("DESCRIPTION", fields = "Package")[1] title <- read.dcf("DESCRIPTION", fields = "Title")[1] description <- read.dcf("DESCRIPTION", fields = "Description")[1] URL <- read.dcf('DESCRIPTION', fields = 'URL')[1] owner <- strsplit(URL,"/")[[1]][4] gh <- sprintf("%s/%s", owner, pkg)
r pkg
: r title
r description
If you use r pkg
, please cite:
r utils::citation(pkg)$textVersion
YuLab\@SMU https://yulab-smu.top
# to install cran version install.packages("`r pkg`") # to install github version if(!require("remotes")) install.packages("remotes") remotes::install_github("`r gh`")
library(`r pkg`) run_shinyTempSignal()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.