Learn R Programming

osfr (version 0.1.0)

download_files: Download files from the OSF

Description

Download files from the OSF

Usage

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

Run this code
# NOT RUN {
download_file('zevw2', 'test123.md')
# }

Run the code above in your browser using DataLab