- dataset_name
Character vector with one or more dataset
names (or partial names). Each entry will be matched against
available SHARK dataset identifiers (e.g.,
"SHARK_Phytoplankton_2023_SMHI_BVVF" for a specific dataset,
or "SHARK_Phytoplankton" for all Phytoplankton datasets).
- save_dir
Directory where zip files (and optionally their
extracted contents) should be stored. Defaults to NULL. If
NULL or "", a temporary directory is used.
- prod
Logical, whether to download from the production
(TRUE, default) or test (FALSE) SHARK server. Ignored if utv is TRUE.
- utv
Logical. Select UTV server when TRUE.
- unzip_file
Logical, whether to extract downloaded zip
archives (TRUE) or only save them (FALSE, default).
- return_df
Logical, whether to return a combined data frame
with the contents of all downloaded datasets (TRUE) instead
of a list of file paths (FALSE, default).
- encoding
Character. File encoding of shark_data.txt. Options: "cp1252", "utf_8", "utf_16", "latin_1".
Default is "latin_1". If guess_encoding = TRUE, detected encoding overrides this value.
Ignored if return_df is FALSE.
- guess_encoding
Logical. If TRUE (default), automatically detect file encoding.
If FALSE, the function uses only the user-specified encoding.
Ignored if return_df is FALSE.
- verbose
Logical, whether to show download and extraction
progress messages. Default is TRUE.