Skip to contents

Figshare issues personal access tokens from account settings (https://figshare.com/account/applications). A token is optional for reading public articles and is used here only to read private ones (it does not raise any request limit: Figshare documents no automatic rate limiting and asks for at most 1 request per second either way), unlike Dataverse where a token is per-installation.

Usage

figshare_pat(pat = NULL)

Arguments

pat

the token to set, or NULL to get the current token

Value

the current token (character; "" when none is set)

Details

Store it as the FIGSHARE_PAT environment variable so it is read every time R starts.

Examples

figshare_pat() # returns "" unless a token is set
#> [1] ""