Learn R Programming

rspacer (version 0.3.1)

set_api_url: Set the RSPACE_API_URL environment variable

Description

Sets the RSPACE_API_URL environment variable to the provided RSpace API URL. The RSpace API URL is likely the URL of your RSpace instance followed by api/v1.

Usage

set_api_url(rspace_api_url)

Value

A logical indicating if setting the API URL succeeded.

Arguments

rspace_api_url

The RSpace API URL

Details

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

Examples

Run this code
if (FALSE) {
set_api_url("https://leiden.researchspace.com/api/v1")
}

Run the code above in your browser using DataLab