fs_upload_one: Upload file to an article

View source: R/fs_upload.R

fs_upload_oneR Documentation

Upload file to an article

Description

Upload file to an article

Usage

fs_upload_one(article_id, file, session = fs_get_auth())

Arguments

article_id

number

file

path to file to upload

session

the authentication credentials from fs_auth (optional)

Details

Article must be a draft, i.e. created by fs_create and not yet made public or private. Only articles of type "fileset" can have multiple files uploaded.

Author(s)

Carl Boettiger cboettig@gmail.com

References

https://docs.figshare.com

See Also

fs_auth

Examples

## Not run: 
id <- fs_create("Title", "description", "figure")
fs_upload(id, "file.png")

## End(Not run) 

rfigshare documentation built on May 10, 2022, 1:05 a.m.