R Interface to a 'PostGIS' Database
Overview
Provides an interface between R and 'PostGIS'-enabled 'PostgreSQL' databases to transparently transfer spatial data. Both vector (points, lines, polygons) and raster data are supported in read and write modes. Also provides convenience functions to execute common procedures in 'PostgreSQL/PostGIS'.
OVERALL CHANGES
pgGetGeom(),pgGetBoundary()now use the SRID for defining the CRS instead of the proj4 code.pgWriteRast(): argumentprogresshave been removed.pgWriteGeom()now throws an error when CRS is undefined.- Functions that return a
TRUEvalue, now return it invisibly (pgMakePts(), ) - Use of
clifor better user feedback rasterandspare now suggested and not imported byrpostgis- Use
lifecyclewarnings to encourage users to usesfandterra, and don't usesporrasteranymore inrpostgis. pgSRID(): now throws an error when CRS is undefined
BUG FIXES
- Fix an error in
dbWriteDataFrame()that was causing data frames withdttmcolumns to be unable to be written to the database.
OTHER CHANGES
Show all changes in 1.6.0Hide the rest of the changes in 1.6.0
- Update website
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-04-09
- ERROR13 OK, 1 ERROR2026-03-10
Documentation
- Help pages
- 34 (14 internal)includes a package overview page
- Examples that run
- 36%8 run in a plain check · 14 never run
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 43%
- Median days to close, 50 most recently updated closed issues
- 8
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
5 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/cidree/rpostgis on 2026-10-22.
GitHub Pages site last deployed 2024-12-06
pkgdown site last built 2024-12-06
Dependencies
Installing rpostgis adds 14 packages (12 with compiled code, 20 MB of source tarballs). Heaviest: sf 9.3 MB, s2 2.8 MB, Rcpp 1.8 MB.
Code & Tests
People & History
Maintainer since 1.5.0 (2023), previously David Bucklin (1.0.0 to 1.4.4)
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 1.6.0Latest
- RR 4.4.0 released · 2024-04-24
- 1.5.12023-11-20 · diff ↗
- 1.5.0
- 1.4.42023-05-06 · diff ↗
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 1.4.32019-11-20 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 1.4.22018-11-12 · diff ↗
- 1.4.12018-08-17 · diff ↗
- RR 3.5.0 released · 2018-04-23
Show 11 earlier eventsHide 11 earlier events
Package metadata
- First published
- 2016-08-20
- Total releases
- 16 / 10 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 3.3.0
- Download size
- 105 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("rpostgis")The package provides a citation file, so citation() returns the authors' own entry.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.