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).
login(pat = NULL)Personal Access Token (PAT) for fast login. If no pat is given, function queries for it.
Personal access token from global environment.
For the security of your OSF account, do not forget to delete this file. This can be done with the logout() function as well.