R/setServer.R

Defines functions setServer

Documented in setServer

#' Set server address
#'
#' Sets the address of the server to which to connect.
#'
#' @param host Address of API server.
#' @export
#' @examples
#' setServer("https://mycompany.cellengine.com")
setServer <- function(host) {
  host <- sub("/$", "", host)
  pkg.env$baseURL <- host
}
primitybio/cellengine-r-toolkit documentation built on Oct. 19, 2024, 1:17 a.m.