Learn R Programming

osfr (version 0.1.1)

login: Login to the OSF

Description

Login to the OSF API with a Personal Access Token (PAT). By default and for security reasons, the login lasts as long as the current session. If you want to store the login across sessions, use argument store (this saves the PAT in your .Renviron; see also logout).

Usage

login(pat, store = FALSE)

Arguments

pat

Personal Access Token (PAT; https://osf.io/settings/tokens)

store

If TRUE, store PAT in user's .Renviron

Examples

Run this code
# NOT RUN {
login(pat = 'this-is-where-you-place-your-pat', store = FALSE)
# }

Run the code above in your browser using DataLab