download_files: Download files from OSF via a specified file ID. Can be used...

Description Usage Arguments

View source: R/files.R

Description

Download files from OSF via a specified file ID. Can be used to download a zip file of all files within a component or "Data" folder in a component.

Usage

1
2
download_files(id, component = FALSE, folders = FALSE,
  folder_name = "Data", path)

Arguments

id

An OSF id to a file or component.

component

Specify whether the id is for a component If TRUE, will download each file in the component. Defaults to FALSE.

folders

If component = TRUE, specify if the component's data is contained in a folder. If TRUE, will download each file in the component as a .zip file For use with grabbing data from projects. Defaults to FALSE.

folder_name

If folders = TRUE, specify the folder name from which to grab zipped data. Defaults to "Data".

path

The path to which the file should be downloaded.


AGRBDCenter/aghelpr2 documentation built on May 17, 2019, 7:31 p.m.