competition_download_file: Competition download file

Description Usage Arguments Value Examples

View source: R/kaggle_wrappers.R

Description

download a competition file to a designated location, or use

Usage

1
2
3
4
5
6
7
competition_download_file(
  competition,
  file_name,
  path = NULL,
  force = FALSE,
  quiet = FALSE
)

Arguments

competition

the name of the competition

file_name

the configuration file name

path

a path to download the file to

force

force the download if the file already exists (default FALSE)

quiet

suppress verbose output (default is FALSE)

Value

None

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## Not run: 

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)


## End(Not run)

fastai documentation built on July 28, 2021, 5:06 p.m.