fs_add_authors {rfigshare}R Documentation

Add author to an article

Description

Add author to an article

Usage

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?

Value

adds the requested authors to the given article

Author(s)

Carl Boettiger cboettig@gmail.com

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) 

[Package rfigshare version 0.3.8 Index]