Description Usage Arguments Value Examples
View source: R/download_kirby21_data.R
This function allows users to download specific modalities for Kirby21 data sets. This allows this package to be on CRAN
| 1 2 3 4 5 6 | download_kirby21_data(
  modality = kirby21.base::all_modalities(),
  progress = TRUE,
  force = FALSE,
  outdir = NULL
)
 | 
| modality | modality of images that are to be downloaded. You must have the package downloaded for that modality. | 
| progress | Should verbose messages be printed when downloading the data | 
| force | If the package of that modality is not installed stop.  If
 | 
| outdir | output directory for files to download. It will default to the directory of the corresponding package for the data. | 
A logical indicating the data is there.
| 1 2 3 4 5 6 7 8 | on_cran = !identical(Sys.getenv("NOT_CRAN"), "true")
on_ci <- nzchar(Sys.getenv("CI"))
local_run = grepl("musch", tolower(Sys.info()[["user"]]))
run_example = !on_cran || on_ci || local_run
if (run_example) {
outdir = tempdir()
res = download_kirby21_data("SURVEY", outdir = outdir)
}
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.