Skip to content

spOccupancy

0.8.2Package record

Single-Species, Multi-Species, and Integrated Spatial Occupancy Models

0packages depend
9.8Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

Fits single-species, multi-species, and integrated non-spatial and spatial occupancy models using Markov Chain Monte Carlo (MCMC). Models are fit using Polya-Gamma data augmentation detailed in Polson, Scott, and Windle (2013) doi:10.1080/01621459.2013.829001. Spatial models are fit using either Gaussian processes or Nearest Neighbor Gaussian Processes (NNGP) for large spatial datasets. Details on NNGP models are given in Datta, Banerjee, Finley, and Gelfand (2016) doi:10.1080/01621459.2015.1044091 and Finley, Datta, and Banerjee (2022) doi:10.18637/jss.v103.i05. Provides functionality for data integration of multiple single-species occupancy data sets using a joint likelihood framework. Details on data integration are given in Miller, Pacifici, Sanderlin, and Reich (2019) doi:10.1111/2041-210X.13110. Details on single-species and multi-species models are found in MacKenzie, Nichols, Lachman, Droege, Royle, and Langtimm (2002) doi:10.1890/0012-9658(2002)083[2248:ESORWD]2.0.CO;2 and Dorazio and Royle doi:10.1198/016214505000000015, respectively.

Changes in 0.8.2
  • Created a new function simFPOcc() that simulates data for the false-positive occupancy model of Chambert et al. (2018).
  • Fixed multiple bugs in prediction code that led to wrong predictions with specific combinations of non-spatial random effects (#58).
  • Fixed bug in prediction for NNGP = FALSE and an indexing problem with spMsPGOcc that could lead to scrambled output (#58).
  • Fixed a variety of small errors in prediction functions that led to function crashes (#58).
  • Fixed minor defects in multiple simulation functions (#59).

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 11.4 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • WARNING12 OK, 1 WARNING2026-06-08
  • ERROR12 OK, 1 ERROR2026-06-07
Show 2 earlier changesHide 2 earlier changes
  • OK12 OK2026-04-25
  • NOTE12 OK, 2 NOTE2026-03-10
Advisories

none known

Documentation

In release 0.8.2
READMEYes · 1,366 wordsVignettes· In the repository, left out of the releaseNEWSYes · 100% structured · mentions 0.8.2Citation fileYes · cites a publicationWebsiteYes
Description cites a JSS article
Help pages
120includes a package overview page
Examples that run
100%63 run in a plain check
Exported functions with examples
100%
Documented parameters
97%
Return-value docs
100%
Help pages citing references
33%

Downloads

9.8K
CRAN downloads in the past year
Rank #3,214 · ~27/day · ~817/mo
Daily download trend is not available in this view yet.
1.6K30 days
3.7K90 days
9.8K1 year
Compare downloads with other packages →
Also on600 r2u4 autocran57 c2d4u

Repository

77Stars
14Forks
4Open issues
0Open PRs
8Releases
260Commits
5Commit identities
License file reads as GPL-3.0 · 260 commits · Last activity 2026-10-07 · +1.3% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
86%
Median days to close, 50 most recently updated closed issues
4
Median days to close, 50 most recently updated closed PRs
8

Stars over time

2026-08-21 · 762026-10-16 · 77
Earlier repositories
PracticesBeta

5 development-tooling and community-health practices detected across 3 families in the upstream repository

Checks run against github.com/ecoverser/spoccupancy on 2026-10-22.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (2)
README.Rmdpkgdown
Coverage (1)
Coverage reporting (Codecov)
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
8 external dependencies (excludes base and recommended)

Installing spOccupancy adds 15 packages (8 with compiled code, 13 MB of source tarballs). Heaviest: lme4 4.3 MB, nloptr 2.1 MB, Rcpp 1.8 MB.

Depends (1)
R >= 3.5.0
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (3)
Author, Maintainer since 0.1.2 (2021)
Contributor · added in 0.5.1
Listed in earlier versions (1)
no longer listed · 0.4.0 to 0.5.0
Releases (21)

Pick two releases to compare their code metrics.

  • 0.8.2Latest
    record
    2026-10-07 · current release · diff ↗ ·
    added 1 export
    simFPOcc
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 0.8.1
    record
    2024-12-14 · diff ↗
  • 0.8.0
    record
    2024-12-14 · diff ↗ ·
    added 4 exports
    simTIntOcc, tIntPGOcc, stIntPGOcc, svcTIntPGOcc
  • R
    R 4.4.0 released · 2024-04-24
  • unarchivedReturned to CRAN
    2024-04-19
  • 0.7.6
    record
    2024-04-19 · diff ↗
  • archivedRemoved from CRAN
    2024-04-12
    issues were not corrected in time
  • 0.7.3
    record
    2024-03-28 · diff ↗ ·
    added 1 export
    updateMCMC
  • 0.7.2
    record
    2023-11-01 · diff ↗
  • 0.7.1
    record
    2023-09-01 · diff ↗
  • 0.7.0
    record
    2023-08-16 · diff ↗ ·
    added 5 exports
    svcMsPGOcc, stMsPGOcc, svcTMsPGOcc, simTMsOcc, tMsPGOcc
  • R
    R 4.3.0 released · 2023-04-21
  • 0.6.1
    record
    2023-03-11 · diff ↗
  • 0.6.0
    record
    2023-03-03 · diff ↗ ·
    added 3 exports
    simIntMsOcc, intMsPGOcc, postHocLM
Show 13 earlier eventsHide 13 earlier events

Package metadata

First published
2021-11-11
Total releases
21 / 5 yrs
License
GPL (>= 3) OSI
Minimum R
≥ 3.5.0
Bundled data
409 KB / 4 files
Download size
1.2 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("spOccupancy")

The package provides a citation file that builds its entry when R runs it. Run citation() to see it.

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 spOccupancy version 0.8.2 [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