Skip to content

rpostgis

1.6.0Package record

R Interface to a 'PostGIS' Database

1packages depend
6.8Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

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'.

Changes in 1.6.0

OVERALL CHANGES

  • pgGetGeom(), pgGetBoundary() now use the SRID for defining the CRS instead of the proj4 code.
  • pgWriteRast(): argument progress have been removed.
  • pgWriteGeom() now throws an error when CRS is undefined.
  • Functions that return a TRUE value, now return it invisibly (pgMakePts(), )
  • Use of cli for better user feedback
  • raster and sp are now suggested and not imported by rpostgis
  • Use lifecycle warnings to encourage users to use sf and terra, and don't use sp or raster anymore in rpostgis.
  • pgSRID(): now throws an error when CRS is undefined

BUG FIXES

  • Fix an error in dbWriteDataFrame() that was causing data frames with dttm columns 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

CRAN checks
13OK
Slowest check: 4.9 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-04-09
  • ERROR13 OK, 1 ERROR2026-03-10
Advisories

none known

Documentation

In release 1.6.0
READMEYes · 266 wordsVignettesNoNEWSYes · 33% structured · mentions 1.6.0Citation fileYes · cites a publicationWebsiteYes · pkgdown
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

6.8K
CRAN downloads in the past year
Rank #5,304 · ~19/day · ~565/mo
Daily download trend is not available in this view yet.
55330 days
1.6K90 days
6.8K1 year
Compare downloads with other packages →
Also on174 r2u164 c2d4u

Repository

80Stars
15Forks
2Open issues
1Open PRs
2Releases
445Commits
5Commit identities
rstats-packagepostgresql-databasepostgis
445 commits · Last activity 2024-12-06 · 0% stars, 30d
Responsiveness
How these are sampled
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

2025-04-21 · 802026-07-07 · 80
PracticesBeta

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.

Docs source (3)
README.Rmdpkgdown

GitHub Pages site last deployed 2024-12-06

pkgdown site last built 2024-12-06

CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
10 external dependencies (excludes base and recommended)

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.

Depends (3)
R >= 3.3.0RPostgreSQLDBI
Imports (6)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect
Imports 1
Depends, Imports or LinkingTo, most downloaded first

People & History

People (3)
Author, Maintainer · added in 1.6.0

Maintainer since 1.5.0 (2023), previously David Bucklin (1.0.0 to 1.4.4)

Listed in earlier versions (1)
no longer listed · 1.5.0 to 1.5.1
Releases (16)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 1.6.0Latest
    record
    2024-12-06 · current release · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 1.5.1
    record
    2023-11-20 · diff ↗
  • 1.5.0
    record
    2023-10-12 · diff ↗ ·
    added 1 export
    pgWriteGeom
  • 1.4.4
    record
    2023-05-06 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • 1.4.3
    record
    2019-11-20 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 1.4.2
    record
    2018-11-12 · diff ↗
  • 1.4.1
    record
    2018-08-17 · diff ↗
  • R
    R 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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for rpostgis version 1.6.0 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy