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.
if (FALSE) {
## Example of getting previously set baseUrllibrary(Rlabkey)
labkey.setDefaults(apiKey="abcdef0123456789abcdef0123456789",
baseUrl="http://labkey/")
labkey.getBaseUrl()
}