download a competition file to a designated location, or use
competition_download_file(
competition,
file_name,
path = NULL,
force = FALSE,
quiet = FALSE
)
the name of the competition
the configuration file name
a path to download the file to
force the download if the file already exists (default FALSE)
suppress verbose output (default is FALSE)
None
if (FALSE) {
com_nm = 'titanic'
titanic_files = competition_list_files(com_nm)
titanic_files = lapply(1:length(titanic_files),
function(x) as.character(titanic_files[[x]]))
str(titanic_files)
if(!dir.exists(com_nm)) {
dir.create(com_nm)
}
# download via api
competition_download_files(competition = com_nm, path = com_nm, unzip = TRUE)
}