R: Get the default baseUrl parameter used for all http or https...

labkey.getBaseUrl {Rlabkey} | R Documentation

## 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

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

[Package Rlabkey version 2.4.0 Index]