Install a subject from the internet, a zip file or a directory
install_subject(
path = ".",
ask = interactive(),
overwrite = FALSE,
backup = TRUE,
use_cache = TRUE,
dry_run = FALSE,
force_project = NA,
force_subject = NA,
...
)path to subject archive, can be a path to directory, a zip file,
or an internet address (must starts with 'http', or 'ftp')
when overwrite is false, whether to ask the user if subject
exists; default is true when running in interactive session; users will be
prompt with choices; if ask=FALSE and overwrite=FALSE, then
the process will end with a warning if the subject exists.
whether to overwrite existing subject, see argument
ask and backup
whether to back-up the subject when overwriting the data; default is true, which will rename the old subject folders instead of removing; set to true to remove existing subject.
whether to use cached extraction directory; default is
true. Set it to FALSE if you want a clean installation.
whether to dry-run the process instead of actually installing; this rehearsal can help you see the progress and prevent you from losing data
force set the project or subject; will raise a warning as this might mess up some pipelines
passed to download.file
if (FALSE) {
install_subject("DemoSubject")
}
Run the code above in your browser using DataLab