R/startup.R

Defines functions .onAttach

.onAttach <- function(libname, pkgname) {
  msg <- paste(
    paste(" Welcome to rpostgis -", sprintf("Version: %s (%s)", utils::packageVersion("rpostgis"), utils::packageDate("rpostgis"))),
    "- Support for `sp` and `raster` objects is deprecated.",
    "- These will be removed in a future release.",
    "- Please use `sf` and `terra` objects with rpostgis.",
    sep = "\n"
  )

  packageStartupMessage(msg)
}

Try the rpostgis package in your browser

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

rpostgis documentation built on April 12, 2025, 1:33 a.m.