View source: R/download_script.R
download_script | R Documentation |
download scripts, data or any file defined in the script metadata.
download_script(cfg, wkDir = "workdir", source_lib = TRUE)
cfg |
a list containing script metadata |
wkDir |
work directory where the files will be downloaded to |
source_lib |
whether to source the library defined for the scrpt in the metadata |
target directory name
Hanming Tu
## Not run: a <- "https://github.com/phuse-org/phuse-scripts/raw/master" b <- "development/R/scripts" c <- "Draw_Dist2_R.yml" f1 <- paste(a,b,c, sep = '/') f2 <- read_yml(f1) f3 <- download_script(f2) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.