fs_author_ids function

Get Author IDs from names

Get Author IDs from names

Take an author list, search for each author and return their FigShare ID. If no author is found, call fs_create_author and return the ID. If multiple matches are found, allow user to choose interactively

fs_author_ids(authors, session = fs_get_auth(), graphics = FALSE)

Arguments

  • authors: a list/vector of authors (not a character string)
  • session: (optional) the authentication credentials from fs_auth. If not provided, will attempt to load from cache.
  • graphics: logical (default False) use graphic input to disambiguate?

Returns

a list of author id numbers, or NULLS where ids cannot be found.