This function downloads the products folder from
the SHARK4R GitHub repository and places them in a user-specified directory.
These folders contain Shiny applications and R Markdown documents used for
quality control (QC) of SHARK data.
Arguments
- path
Character string giving the directory where the products folder should be created. Must be provided by the user.
- run_app
Logical, if
TRUEruns the QC Shiny app located in theproductsfolder after setup. Default isFALSE.- force
Logical, if
TRUEforces a re-download and overwrites existing folder. Default isFALSE.- verbose
Logical, if
TRUEprints progress messages. Default isTRUE.
Details
If the path folders already exist, the download will be skipped unless
force = TRUE is specified. Optionally, the function can launch the
QC Shiny app directly after setup.
Examples
# \donttest{
# Download support files into a temporary directory
check_setup(path = tempdir())
#> Downloading setup files for SHARK4R...
#> Setup complete. Files are available in /tmp/RtmpyNBGIK
# Force re-download if already present
check_setup(path = tempdir(), force = TRUE)
#> Downloading setup files for SHARK4R...
#> Setup complete. Files are available in /tmp/RtmpyNBGIK
# Download and run the QC Shiny app
if(interactive()){
check_setup(path = tempdir(), run_app = TRUE)
}
# }
