R/retrieve_data_files.R
retrieve_data_files.Rd
This script downloads relevant data files from the CALANGO project repository. It will extract the data into a folder containing directories related to dictionary files, Gene Ontology annotation files, tree files, etc. Note: you may need to edit the file paths in the example scripts contained under the `parameters` subfolder of `target.dir`, or pass an appropriate base path using parameter `basedir` in [run_CALANGO()].
retrieve_data_files(
target.dir,
method = "auto",
unzip = getOption("unzip"),
...
)
path to the folder where the files will be saved ( accepts relative and absolute paths)
Method to be used for downloading files. Current download
methods are "internal", "wininet" (Windows only) "libcurl", "wget" and
"curl", and there is a value "auto": see _Details_ and _Note_ in the
documentation of utils::download.file()
.
The unzip method to be used. See the documentation of
utils::unzip()
for details.
additional attributes (currently ignored)
No return value, called for side effects (see Description).
If the `target.dir` provided does not exist it is created (recursively) by the function.
if (FALSE) { # \dontrun{
CALANGO::retrieve_data_files(target.dir = "./data")
} # }