stage_assets | R Documentation |
Helper for upload_assets()
. Not really intended for use by user. Looks for a pattern in a given path within a working directory and copies those files to the dest_folder, usually /published
stage_assets(
WD,
rel_path,
pattern = NULL,
exclude = NULL,
dest_folder = NULL,
clear = FALSE
)
WD |
what's the project working directory? passed to parse_wd() |
rel_path |
what's the subfolder path within WD? e.g."assets/_learning-plots" |
pattern |
a regular expression for allowable file types; default=NULL |
exclude |
a regular expression to exclude from uploading; default=NULL excludes nothing; ".ai$" would exclude Adobe Illustrator files for example. |
dest_folder |
full path to where you want things to go (defaults to WD/published) |
clear |
do you want to delete everything in the target directory? default= FALSE |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.