Description Usage Arguments Value Author(s) Examples
View source: R/download_script.R
download scripts, data or any file defined in the script metadata.
1 | 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
1 2 3 4 5 6 7 8 9 | ## 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.