osf_download_csv: Download all comma-separated-value ('.csv') files from an OSF...

Description Usage Arguments Details Examples

View source: R/osf_download_csv.r

Description

Download all .csv files from an existing OSF project or component based on the associated unique identifier. This is a 5-character global unique identifier (GUID). See below for details. Note that this function only downloads files listed in the top-level directory. It will overwrite files of the same name.

Usage

1
2
3
4
osf_download_csv (
  id,
  path = 'data-raw/'
)

Arguments

id

An OSF identifier corresponding to an OSF project or component.

path

Path pointing to a local directory where the downloaded files will be saved. Default is to use ‘data-raw/’. If specified directory does not exist, it will be created.

Details

See package osfr for additional information.

Examples

1
2
3
osf_download_csv('87kgc')
osf_download_csv('87kgc', 'new_data')
fs::dir_delete(c('data-raw', 'new_data'))

doctortickle/osfrext documentation built on June 6, 2020, 2:04 p.m.