R/zzz.R

.onAttach <- function(lib, pkg) {
  if (interactive()) {
    ver <- read.dcf(file.path(lib, pkg, "DESCRIPTION"), "Version")
    msg <- "USGS Orphan Package:
            https://owi.usgs.gov/R/packages.html#orphan
            Deprecated - Development of this package has halted."
    packageStartupMessage(paste(strwrap(msg), collapse="\n"))
    LaunchGui()
  } else {
    packageStartupMessage("The RSurvey GUI is launched only in interactive sessions.")
  }
  raster::rasterOptions(standardnames=FALSE)
  invisible()
}

.onLoad <- function(...) {
  if (interactive()) ManagePackages()
  invisible()
}

Try the RSurvey package in your browser

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

RSurvey documentation built on May 2, 2019, 3:28 p.m.