Learn R Programming

osfr (version 0.1.0)

login: Login function; interactive without arguments

Description

Function to easily login, either with a prompt when run without arguments, or without prompt when run with arguments or config file (~/.osf_config). If you run this function without arguments, the prompt will result in creation of a ~/.osf_config file (in your Documents folder for Windows).

Usage

login(pat = NULL)

Arguments

pat

Personal Access Token (PAT) for fast login. If no pat is given, function queries for it.

Value

Personal access token from global environment.

Details

For the security of your OSF account, do not forget to delete this file. This can be done with the logout() function as well.