stage_assets: Copy updated assets in a specific folder to a destination

View source: R/stage_assets.R

stage_assetsR Documentation

Copy updated assets in a specific folder to a destination

Description

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

Usage

stage_assets(
  WD,
  rel_path,
  pattern = NULL,
  exclude = NULL,
  dest_folder = NULL,
  clear = FALSE
)

Arguments

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


galacticpolymath/GPpub documentation built on April 5, 2025, 6:04 p.m.