set_api_key: Set the 'RSPACE_API_KEY' environment variable

View source: R/api.R

set_api_keyR Documentation

Set the RSPACE_API_KEY environment variable

Description

Sets the RSPACE_API_KEY environment variable to the provided RSpace API key. To create an API key go to 'Manage API Key' section of your profile page (MyRSpace -> Profile).

Usage

set_api_key(rspace_api_key)

Arguments

rspace_api_key

Your RSpace API key

Details

This will only set the environment variable for the current session, to set it permanently, add ⁠RSPACE_API_KEY=<your_api_key_here>⁠ to your .Renviron file, for example, using usethis::edit_r_environ().

Value

A logical indicating if setting the API key succeeded


rspacer documentation built on Aug. 8, 2025, 6:19 p.m.