Learn R Programming

harmonydata (version 0.3.1)

set_url: Set 'Harmony' URL

Description

This function sets the 'Harmony' API URL to be used in the package. By default, it uses the production 'Harmony' API ('https://api.harmonydata.ac.uk'), but you can override it by providing a different URL.

Usage

set_url(harmony_url = "https://api.harmonydata.ac.uk")

Value

No return value, called for side effects.

Arguments

harmony_url

The 'Harmony' API URL to be set. (default: 'https://api.harmonydata.ac.uk')

Author

Ulster University [cph]

Details

The pkg.globals$url variable is a global variable that holds the 'Harmony' API URL to be used in the package. Once you set the URL using this function, it will be used in all the relevant functions within the package.

Examples

Run this code
# \donttest{
set_url('https://staging.harmonydata.org')
set_url() # Will set the URL back to the default 'https://api.harmonydata.ac.uk'
# }

Run the code above in your browser using DataLab