get_credentials: Get GLIS Credentials

View source: R/get_credentials.R

get_credentialsR Documentation

Get GLIS Credentials

Description

A helper function to prompt a user for their GLIS username and password, if the global variables GLIS_USER and GLIS_PASSWORD are not found. The default function uses the rstudioapi which provides pop-up to enter credentials so that usernames and passwords are not saved, and passwords are not visible. If the users is not using Rstudio, the default readline interface is used. Depending on the R client, the password characters may not be obscured when the readlines function is called.

Usage

get_credentials()

Details

Users can by-pass the prompts by setting up global variable for their account. These values will be used preferentially if they exists.

Value

named list

Author(s)

Adam Cottrill adam.cottrill@ontario.ca


AdamCottrill/glfishr documentation built on Aug. 9, 2024, 5:47 p.m.