fs_add_authors function

Add author to an article

Add author to an article

fs_add_authors( article_id, authors, session = fs_get_auth(), create_missing = TRUE, debug = FALSE )

Arguments

  • article_id: id number of an article on figshare
  • authors: a list or character string of authors or author id numbers (or mixed).
  • session: (optional) the authentication credentials from fs_auth. If not provided, will attempt to load from cache as long as figshare_auth has been run.
  • create_missing: (logical) Attempt to create authors not already registered on FigShare?
  • debug: return the httr result visibly?

Returns

adds the requested authors to the given article

Examples

## Not run: fs_add_authors("138", list("Scott Chamberlain", "Karthik Ram")) fs_add_authors("138", c("Scott Chamberlain", "Karthik Ram")) fs_add_authors("138", list("Scott Chamberlain", "97306")) fs_add_authors("138", list("Scott Chamberlain", 97306)) fs_add_authors(138, 97306) ## End(Not run)

Author(s)

Carl Boettiger cboettig@gmail.com