Warning: If working on a MacOS (or Linux) machine, one should install
data.tableandcmdstanrfrom source in order to use the package. Otherwise, one getsegmentation faulterrors which are hard to debug (and also not adrmr, but rather acmdstanrissue). To install a package from source, one should use:
install.packages("<package>", type = "source")Moreover, we recommend installing
instantiatefrom GitHub instead of CRAN.
drmr (pronounced drummer) is an R package for fitting dynamic
range models to spatiotemporal data on species abundance. Dynamic range
models are spatial population models in which demographic rates (e.g.,
reproduction or mortality) are influenced by the environment. Inference
is carried out in a Bayesian framework via Markov Chain Monte Carlo
(MCMC) samples available in Stan.
For details, please see Vignettes linked below and da Cunha Godoy et al. 2026.
The installation of the development version from GitHub can be done via
remotes::install_github("pinskylab/drmr")
## or devtools::install_github("pinskylab/drmr")