Skip to contents

get_project_file downloads files from the MATOS website. This is best-used in conjunction with list_project_files.

Usage

get_project_file(
  file = NULL,
  project = NULL,
  url = NULL,
  out_dir = getwd(),
  overwrite = FALSE,
  quiet = FALSE
)

Arguments

file

A character vector listing the name of the file, or a numeric listing the index as found from list_project_files.

project

A character vector listing the full name of the project, or a numeric listing the project number.

url

The URL of the file to be downloaded.

out_dir

Character. What directory/folder do you want the file saved into? Default is the current working directory.

overwrite

Logical. Do you want a file with the same name overwritten? Passed to httr::write_disk.

quiet

Logical. Do you want to silence matos' updates? Default is FALSE.

Examples

if (FALSE) { # all(skip_example_on_cran(), skip_example_on_runiverse())
# If you know the index of the file, you can provide some numbers
get_project_file(file = 1, project = 87)

# If you know the direct URL to your file, you don't need the file or project names:
get_project_file(url = "https://matos.asascience.com/projectfile/download/327")
}