download_files: Download files from the OSF

Description Usage Arguments Value Examples

View source: R/files.R

Description

Download files from the OSF

Usage

1
download_files(id, path = NULL, private = FALSE, version = NULL)

Arguments

id

Specify the node id (osf.io/XXXX)

path

Specify path to save file to. If NULL, defaults to OSF filename in tempdir

private

Boolean to specify whether file is private

version

Specify the OSF version id (string)

Value

Return filepath for easy processing

Examples

1
2
3
4
## Not run: 
download_file('zevw2', 'test123.md')

## End(Not run)

chartgerink/osfr documentation built on May 11, 2018, 5:21 a.m.