upload_files: Upload a file to the OSF (both new and revised)

Description Usage Arguments Value Examples

View source: R/files.R

Description

Upload a file to the OSF (both new and revised)

Usage

1
upload_files(id, path, dest = NULL)

Arguments

id

OSF id (osf.io/XXXX; just XXXX) to upload to. Specify project to upload a new file, specify a file to upload a revision.

path

Path to file on local machine to upload.

dest

Name of the destination file on OSF (if NULL, basename(path) will be used). Note that this can be used to specify what folder to place files in, e.g. 'my_folder/file.png'. Also note that if id is a file ID, this is not necessary.

Value

Link if new file created

Examples

1
2
3
4
## Not run: 
upload_files(id = '12345', path = 'test.pdf')

## End(Not run)

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