labguru_set_token: Labguru set token

View source: R/authenticate.R

labguru_set_tokenR Documentation

Labguru set token

Description

Set token and server as system variables. Useful when a user has a token but no login credentials.

Usage

labguru_set_token(
  token,
  server = "https://jonathan.labguru.com",
  set_sys = TRUE
)

Arguments

token

Labguru API access token

server

character(1) Server URL, "https://jonathan.labguru.com" by default

set_sys

logical(1) Set server and token as system variables LABGURU_SERVER and LABGURU_TOKEN

Value

Returns the token (visibly or invisibly depending on set_sys)

Examples

# helper function to set labguru token

BioData/LabguruR documentation built on May 11, 2022, 11:46 p.m.