This function checks if the data already exists in a local cache. If not, it downloads the file from the remote repository using multiple sources with fallback.
Usage
LoadRefData(
data_type = c("survival", "binary", "continuous"),
path = NULL,
cache = TRUE,
timeout = 60
)Arguments
- data_type
The type of data to download. Must be one of "survival", "binary", or "continuous".
- path
Optional path to save the downloaded file, default: NULL, saving in package.
- cache
Logical. If TRUE (default), saves the data for future sessions.
- timeout
Integer. Connection timeout in seconds (default: 60).
Examples
if (FALSE) { # \dontrun{
ref_data <- LoadRefData(data_type = c("survival"))
} # }