This function checks if the data already exists in a local cache.
If not, it downloads the file from the remote repository.
Usage
LoadRefData(
data_type = c("survival", "binary", "continuous"),
path = tempdir(),
cache = TRUE
)
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.
- cache
Logical. If TRUE (default), saves the data for future sessions.
Value
The requested datasets
Examples
if (FALSE) { # \dontrun{
ref_data <- LoadRefData()
} # }