View source: R/ifcb_download_test_data.R
ifcb_download_test_data | R Documentation |
This function downloads a zip archive containing MATLAB files from the iRfcb
dataset available in the SMHI IFCB Plankton Image Reference Library (Torstensson et al. 2024),
unzips them into the specified folder and extracts png images. These data can be used, for instance,
for testing iRfcb and for creating the tutorial vignette
using vignette("a-general-tutorial", package = "iRfcb")
ifcb_download_test_data(
dest_dir,
figshare_article = "48158716",
max_retries = 5,
sleep_time = 10,
verbose = TRUE
)
dest_dir |
The destination directory where the files will be unzipped. |
figshare_article |
The file article number at the SciLifeLab Figshare data repository. By default, the iRfcb test dataset (48158716) from Torstensson et al. (2024) is used. |
max_retries |
The maximum number of retry attempts in case of download failure. Default is 5. |
sleep_time |
The sleep time between download attempts, in seconds. Default is 10. |
verbose |
A logical indicating whether to print progress messages. Default is TRUE. |
No return value. This function is called for its side effect of downloading, extracting, and organizing IFCB test data.
Torstensson, Anders; Skjevik, Ann-Turi; Mohlin, Malin; Karlberg, Maria; Karlson, Bengt (2024). SMHI IFCB Plankton Image Reference Library. Version 3. SciLifeLab. Dataset. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.17044/scilifelab.25883455.v3")}
## Not run:
# Download and unzip IFCB test data into the "data" directory
ifcb_download_test_data("data")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.