Add a category to article

fs_add_categories(article_id, category_id, session = fs_get_auth(),
  debug = FALSE)

Arguments

article_id

the id number of the article

category_id

is a vector of integers corresponding to categories or a vector of category names

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.

debug

return PUT results visibly?

Value

output of PUT request (invisibly)

References

http://api.figshare.com

See also

Author

Edmund Hart [email protected]

Examples

if (FALSE) { fs_add_categories(138, "Ecology") }