Learn R Programming

rfigshare (version 0.3.6)

fs_update: Update article title, description, or type

Description

Updates the article title, description or type. If any is not specified, it will remain unchanged.

Usage

fs_update(article_id, title = NA, description = NA, type = NA,
  mine = TRUE, session = fs_get_auth(), debug = FALSE)

Arguments

article_id
the id number of the article
title
for the article (to replace original title)
mine
Set to TRUE if it refers to an item on your own account
description
of the article (replaces original designation)
type
one of: dataset, figure, media, poster, or paper (replaces original designation)
session
(optional) the authentication credentials from fs_auth.
debug
return httr PUT request visibly?

Value

  • output of PUT request (invisibly)

Details

Updates the title, description, and type of an article.

References

http://api.figshare.com

See Also

fs_auth, fs_add_tags

Examples

Run this code
fs_update(138, title = "New title")

Run the code above in your browser using DataLab