R/onLoad.R

Defines functions .onLoad

.onLoad <- function(libname, pkgname) {

  # set some default SG options
  opts <-
    c(icesSAG.messages = "TRUE",
      icesSAG.use_token = "FALSE",
      #icesSAG.hostname = "'iistest01/standardgraphs'")
      icesSAG.hostname = "'sg.ices.dk'")

  for (i in setdiff(names(opts), names(options()))) {
        eval(parse(text = paste0("options(", i, "=", opts[i], ")")))
  }

  invisible()
}

Try the icesSAG package in your browser

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

icesSAG documentation built on May 31, 2023, 6:46 p.m.