View source: R/labkey.defaults.R
labkey.getBaseUrl | R Documentation |
Use this function to get "baseUrl" package environment variables to be used for all http or https requests.
labkey.getBaseUrl(baseUrl=NULL)
baseUrl |
server location including context path, if any. e.g. https://www.labkey.org/ |
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.
## Not run:
## Example of getting previously set baseUrl
library(Rlabkey)
labkey.setDefaults(apiKey="abcdef0123456789abcdef0123456789",
baseUrl="http://labkey/")
labkey.getBaseUrl()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.