fs_author_ids: Get Author IDs from names

View source: R/fs_add_authors.R

fs_author_idsR Documentation

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.


ropensci/rfigshare documentation built on May 18, 2022, 6:34 p.m.