fs_add_categories function

Add a category to article

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?

Returns

output of PUT request (invisibly)

Examples

## Not run: fs_add_categories(138, "Ecology") ## End(Not run)

References

https://docs.figshare.com

See Also

fs_auth

Author(s)

Edmund Hart edmund.m.hart@gmail.com