Learn R Programming

Rlabkey (version 2.8.0)

labkey.getBaseUrl: Get the default baseUrl parameter used for all http or https requests

Description

Use this function to get "baseUrl" package environment variables to be used for all http or https requests.

Usage

labkey.getBaseUrl(baseUrl=NULL)

Arguments

baseUrl

server location including context path, if any. e.g. https://www.labkey.org/

Details

The function takes an optional baseUrl parameter. When non empty parameter is passed in and if baseUrl has not been previously set, the function will remember the baseUrl value in package environment variables and return the formatted baseUrl. Skip baseUrl parameter to get previously set baseUrl.

Examples

Run this code
# NOT RUN {
## Example of getting previously set baseUrl
library(Rlabkey)
labkey.setDefaults(apiKey="session|abcdef0123456789abcdef0123456789",
    baseUrl="http://labkey/")
labkey.getBaseUrl()

# }

Run the code above in your browser using DataLab