Learn R Programming

rfigshare (version 0.3.8)

fs_author_ids: Get Author IDs from names

Description

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

Usage

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?

Value

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