R/onLoad.R

Defines functions .onLoad

#' Adds the contents of `inst/srcjs/` to `polish/`
#'
#' @importFrom shiny addResourcePath
#' @importFrom httr set_config config
#'
#' @return \code{invisible(NULL)}
#'
#' @noRd
#'
.onLoad <- function(...) {
  shiny::addResourcePath("polish", system.file("assets", package = "polished"))
  httr::set_config(httr::config(http_version = 0))
  set_api_url()

  invisible(NULL)
}

Try the polished package in your browser

Any scripts or data that you put into this service are public.

polished documentation built on Feb. 16, 2023, 8:02 p.m.