load_dataset_from_github {OncoSubtype} | R Documentation |
Load Dataset from GitHub Repository
Description
Downloads a specified dataset from a GitHub repository if it is not already present in the specified local directory, then loads the dataset into the global environment. This function is designed to help manage package size by storing data externally and loading it on-demand.
Usage
load_dataset_from_github(disease, local_dir = path.expand(getwd()))
Arguments
disease |
A character string specifying the disease, which corresponds
to the name of the dataset to be loaded (e.g., "LUSC"). The function constructs
the filename as |
local_dir |
An optional character string specifying the path to the directory
where datasets should be stored locally. If not provided, defaults to a
subdirectory named |
Value
Invisible NULL. The function is primarily used for its side effect of loading a dataset into the global environment. However, the function itself does not return the dataset directly.
Examples
## Not run:
load_dataset_from_github("LUSC")
## End(Not run)