powered by
Upload file to an article
fs_upload_one(article_id, file, session = fs_get_auth())
number
path to file to upload
the authentication credentials from fs_auth (optional)
fs_auth
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.
fs_create
https://docs.figshare.com
# NOT RUN { id <- fs_create("Title", "description", "figure") fs_upload(id, "file.png") # }
Run the code above in your browser using DataLab