Skip to content

nimbleSCR

Spatial Capture-Recapture (SCR) Methods Using 'nimble'

v0.2.1 · Nov 30, 2022 · GPL-3

Description

Provides utility functions, distributions, and fitting methods for Bayesian Spatial Capture-Recapture (SCR) and Open Population Spatial Capture-Recapture (OPSCR) modelling using the nimble package (de Valpine et al. 2017 <doi:10.1080/10618600.2016.1172487 >). Development of the package was motivated primarily by the need for flexible and efficient analysis of large-scale SCR data (Bischof et al. 2020 <doi:10.1073/pnas.2011383117 >). Computational methods and techniques implemented in nimbleSCR include those discussed in Turek et al. 2021 <doi:10.1002/ecs2.3385>; among others. For a recent application of nimbleSCR, see Milleret et al. (2021) <doi:10.1098/rsbl.2021.0128>.

Downloads

CRAN

323

Last 30 days

13999th

756

Last 90 days

3.6K

Last year

Trend: +78.5% (30d vs prior 30d)

r2u CRAN

0

Last 30 days

53

Last 90 days

193

Last year

Trend: -100% (30d vs prior 30d)

autoCRAN

3

Last 7 days

18

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 NOTE
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang NOTE
r-devel-linux-x86_64-debian-gcc NOTE
r-devel-linux-x86_64-fedora-clang NOTE
r-devel-linux-x86_64-fedora-gcc NOTE
r-devel-windows-x86_64 NOTE
r-oldrel-macos-arm64 NOTE
r-oldrel-macos-x86_64 NOTE
r-oldrel-windows-x86_64 NOTE
r-patched-linux-x86_64 NOTE
r-release-linux-x86_64 NOTE
r-release-macos-arm64 NOTE
r-release-macos-x86_64 NOTE
r-release-windows-x86_64 NOTE
Check details (15 non-OK)
NOTE r-devel-linux-x86_64-debian-clang

Rd files

checkRd: (-1) dcatState1Alive1Dead.Rd:58: Lost braces; missing escapes or markup?
    58 | If z_{i,t} = 1, individual i can be recruited (transition to state 2) with probability prob1To2_t, so z_{i,t+1} ~ dcat(1- prob1To2_t, prob1To2_t, 0,0 , 0) where prob1To2_t represent the probability of an unborn individual to be recruited.
       |      ^
checkRd: (-1) dcatState1Alive1Dead.Rd:58: Lost braces; missing escapes or markup?
    58 | If z_{i,t} = 1, individual i can be recruited (transition to state 2) with probability prob1To2_t, so z_{i,t+1} ~ dcat(1- prob1To2_t, prob1To2_t, 0,0 , 0) where prob1To2_t represent the probability of an unborn individual to be recruited.
       |                                                                                                         ^
checkRd: (-1) dcatState1Alive1Dead.Rd:59: Lost braces; missing escapes or markup?
    59 | If z_{i,t} = 2, individual i can die and transition to z_{i,t+1}=3 with probability prob2To3, or survive with probabil
...[truncated]...
ng for a single node, which must in essence follow a categorical distribution.  However, the prior distribution need not be \code{nimble}'s \code{dcat} distribution, but rather can be any (potentially user-defined) distribution which has the same support as a standard categorical (\code{dcat}) distribution.  Specifically: the distribution must define a discrete random variable, which can only attain values from the set {1, 2, 3, ..., \code{numCategories}}.
       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
NOTE r-devel-linux-x86_64-debian-gcc

Rd files

checkRd: (-1) dcatState1Alive1Dead.Rd:58: Lost braces; missing escapes or markup?
    58 | If z_{i,t} = 1, individual i can be recruited (transition to state 2) with probability prob1To2_t, so z_{i,t+1} ~ dcat(1- prob1To2_t, prob1To2_t, 0,0 , 0) where prob1To2_t represent the probability of an unborn individual to be recruited.
       |      ^
checkRd: (-1) dcatState1Alive1Dead.Rd:58: Lost braces; missing escapes or markup?
    58 | If z_{i,t} = 1, individual i can be recruited (transition to state 2) with probability prob1To2_t, so z_{i,t+1} ~ dcat(1- prob1To2_t, prob1To2_t, 0,0 , 0) where prob1To2_t represent the probability of an unborn individual to be recruited.
       |                                                                                                         ^
checkRd: (-1) dcatState1Alive1Dead.Rd:59: Lost braces; missing escapes or markup?
    59 | If z_{i,t} = 2, individual i can die and transition to z_{i,t+1}=3 with probability prob2To3, or survive with probabil
...[truncated]...
ng for a single node, which must in essence follow a categorical distribution.  However, the prior distribution need not be \code{nimble}'s \code{dcat} distribution, but rather can be any (potentially user-defined) distribution which has the same support as a standard categorical (\code{dcat}) distribution.  Specifically: the distribution must define a discrete random variable, which can only attain values from the set {1, 2, 3, ..., \code{numCategories}}.
       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
NOTE r-devel-linux-x86_64-fedora-clang

Rd files

checkRd: (-1) dcatState1Alive1Dead.Rd:58: Lost braces; missing escapes or markup?
    58 | If z_{i,t} = 1, individual i can be recruited (transition to state 2) with probability prob1To2_t, so z_{i,t+1} ~ dcat(1- prob1To2_t, prob1To2_t, 0,0 , 0) where prob1To2_t represent the probability of an unborn individual to be recruited.
       |      ^
checkRd: (-1) dcatState1Alive1Dead.Rd:58: Lost braces; missing escapes or markup?
    58 | If z_{i,t} = 1, individual i can be recruited (transition to state 2) with probability prob1To2_t, so z_{i,t+1} ~ dcat(1- prob1To2_t, prob1To2_t, 0,0 , 0) where prob1To2_t represent the probability of an unborn individual to be recruited.
       |                                                                                                         ^
checkRd: (-1) dcatState1Alive1Dead.Rd:59: Lost braces; missing escapes or markup?
    59 | If z_{i,t} = 2, individual i can die and transition to z_{i,t+1}=3 with probability prob2To3, or survive with probabil
...[truncated]...
ng for a single node, which must in essence follow a categorical distribution.  However, the prior distribution need not be \code{nimble}'s \code{dcat} distribution, but rather can be any (potentially user-defined) distribution which has the same support as a standard categorical (\code{dcat}) distribution.  Specifically: the distribution must define a discrete random variable, which can only attain values from the set {1, 2, 3, ..., \code{numCategories}}.
       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
NOTE r-devel-linux-x86_64-fedora-clang

dependencies in R code

Namespace in Imports field not imported from: ‘methods’
  All declared Imports should be used.
NOTE r-devel-linux-x86_64-fedora-gcc

Rd files

checkRd: (-1) dcatState1Alive1Dead.Rd:58: Lost braces; missing escapes or markup?
    58 | If z_{i,t} = 1, individual i can be recruited (transition to state 2) with probability prob1To2_t, so z_{i,t+1} ~ dcat(1- prob1To2_t, prob1To2_t, 0,0 , 0) where prob1To2_t represent the probability of an unborn individual to be recruited.
       |      ^
checkRd: (-1) dcatState1Alive1Dead.Rd:58: Lost braces; missing escapes or markup?
    58 | If z_{i,t} = 1, individual i can be recruited (transition to state 2) with probability prob1To2_t, so z_{i,t+1} ~ dcat(1- prob1To2_t, prob1To2_t, 0,0 , 0) where prob1To2_t represent the probability of an unborn individual to be recruited.
       |                                                                                                         ^
checkRd: (-1) dcatState1Alive1Dead.Rd:59: Lost braces; missing escapes or markup?
    59 | If z_{i,t} = 2, individual i can die and transition to z_{i,t+1}=3 with probability prob2To3, or survive with probabil
...[truncated]...
ng for a single node, which must in essence follow a categorical distribution.  However, the prior distribution need not be \code{nimble}'s \code{dcat} distribution, but rather can be any (potentially user-defined) distribution which has the same support as a standard categorical (\code{dcat}) distribution.  Specifically: the distribution must define a discrete random variable, which can only attain values from the set {1, 2, 3, ..., \code{numCategories}}.
       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
NOTE r-devel-linux-x86_64-fedora-gcc

dependencies in R code

Namespace in Imports field not imported from: ‘methods’
  All declared Imports should be used.
NOTE r-devel-windows-x86_64

Rd files

checkRd: (-1) dcatState1Alive1Dead.Rd:58: Lost braces; missing escapes or markup?
    58 | If z_{i,t} = 1, individual i can be recruited (transition to state 2) with probability prob1To2_t, so z_{i,t+1} ~ dcat(1- prob1To2_t, prob1To2_t, 0,0 , 0) where prob1To2_t represent the probability of an unborn individual to be recruited.
       |      ^
checkRd: (-1) dcatState1Alive1Dead.Rd:58: Lost braces; missing escapes or markup?
    58 | If z_{i,t} = 1, individual i can be recruited (transition to state 2) with probability prob1To2_t, so z_{i,t+1} ~ dcat(1- prob1To2_t, prob1To2_t, 0,0 , 0) where prob1To2_t represent the probability of an unborn individual to be recruited.
       |                                                                                                         ^
checkRd: (-1) dcatState1Alive1Dead.Rd:59: Lost braces; missing escapes or markup?
    59 | If z_{i,t} = 2, individual i can die and transition to z_{i,t+1}=3 with probability prob2To3, or survive with probabil
...[truncated]...
ng for a single node, which must in essence follow a categorical distribution.  However, the prior distribution need not be \code{nimble}'s \code{dcat} distribution, but rather can be any (potentially user-defined) distribution which has the same support as a standard categorical (\code{dcat}) distribution.  Specifically: the distribution must define a discrete random variable, which can only attain values from the set {1, 2, 3, ..., \code{numCategories}}.
       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
NOTE r-oldrel-macos-arm64

Rd files

checkRd: (-1) dcatState1Alive1Dead.Rd:58: Lost braces; missing escapes or markup?
    58 | If z_{i,t} = 1, individual i can be recruited (transition to state 2) with probability prob1To2_t, so z_{i,t+1} ~ dcat(1- prob1To2_t, prob1To2_t, 0,0 , 0) where prob1To2_t represent the probability of an unborn individual to be recruited.
       |      ^
checkRd: (-1) dcatState1Alive1Dead.Rd:58: Lost braces; missing escapes or markup?
    58 | If z_{i,t} = 1, individual i can be recruited (transition to state 2) with probability prob1To2_t, so z_{i,t+1} ~ dcat(1- prob1To2_t, prob1To2_t, 0,0 , 0) where prob1To2_t represent the probability of an unborn individual to be recruited.
       |                                                                                                         ^
checkRd: (-1) dcatState1Alive1Dead.Rd:59: Lost braces; missing escapes or markup?
    59 | If z_{i,t} = 2, individual i can die and transition to z_{i,t+1}=3 with probability prob2To3, or survive with probabil
...[truncated]...
ng for a single node, which must in essence follow a categorical distribution.  However, the prior distribution need not be \code{nimble}'s \code{dcat} distribution, but rather can be any (potentially user-defined) distribution which has the same support as a standard categorical (\code{dcat}) distribution.  Specifically: the distribution must define a discrete random variable, which can only attain values from the set {1, 2, 3, ..., \code{numCategories}}.
       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
NOTE r-oldrel-macos-x86_64

Rd files

checkRd: (-1) dcatState1Alive1Dead.Rd:58: Lost braces; missing escapes or markup?
    58 | If z_{i,t} = 1, individual i can be recruited (transition to state 2) with probability prob1To2_t, so z_{i,t+1} ~ dcat(1- prob1To2_t, prob1To2_t, 0,0 , 0) where prob1To2_t represent the probability of an unborn individual to be recruited.
       |      ^
checkRd: (-1) dcatState1Alive1Dead.Rd:58: Lost braces; missing escapes or markup?
    58 | If z_{i,t} = 1, individual i can be recruited (transition to state 2) with probability prob1To2_t, so z_{i,t+1} ~ dcat(1- prob1To2_t, prob1To2_t, 0,0 , 0) where prob1To2_t represent the probability of an unborn individual to be recruited.
       |                                                                                                         ^
checkRd: (-1) dcatState1Alive1Dead.Rd:59: Lost braces; missing escapes or markup?
    59 | If z_{i,t} = 2, individual i can die and transition to z_{i,t+1}=3 with probability prob2To3, or survive with probabil
...[truncated]...
ng for a single node, which must in essence follow a categorical distribution.  However, the prior distribution need not be \code{nimble}'s \code{dcat} distribution, but rather can be any (potentially user-defined) distribution which has the same support as a standard categorical (\code{dcat}) distribution.  Specifically: the distribution must define a discrete random variable, which can only attain values from the set {1, 2, 3, ..., \code{numCategories}}.
       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
NOTE r-oldrel-windows-x86_64

Rd files

checkRd: (-1) dcatState1Alive1Dead.Rd:58: Lost braces; missing escapes or markup?
    58 | If z_{i,t} = 1, individual i can be recruited (transition to state 2) with probability prob1To2_t, so z_{i,t+1} ~ dcat(1- prob1To2_t, prob1To2_t, 0,0 , 0) where prob1To2_t represent the probability of an unborn individual to be recruited.
       |      ^
checkRd: (-1) dcatState1Alive1Dead.Rd:58: Lost braces; missing escapes or markup?
    58 | If z_{i,t} = 1, individual i can be recruited (transition to state 2) with probability prob1To2_t, so z_{i,t+1} ~ dcat(1- prob1To2_t, prob1To2_t, 0,0 , 0) where prob1To2_t represent the probability of an unborn individual to be recruited.
       |                                                                                                         ^
checkRd: (-1) dcatState1Alive1Dead.Rd:59: Lost braces; missing escapes or markup?
    59 | If z_{i,t} = 2, individual i can die and transition to z_{i,t+1}=3 with probability prob2To3, or survive with probabil
...[truncated]...
ng for a single node, which must in essence follow a categorical distribution.  However, the prior distribution need not be \code{nimble}'s \code{dcat} distribution, but rather can be any (potentially user-defined) distribution which has the same support as a standard categorical (\code{dcat}) distribution.  Specifically: the distribution must define a discrete random variable, which can only attain values from the set {1, 2, 3, ..., \code{numCategories}}.
       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
NOTE r-patched-linux-x86_64

Rd files

checkRd: (-1) dcatState1Alive1Dead.Rd:58: Lost braces; missing escapes or markup?
    58 | If z_{i,t} = 1, individual i can be recruited (transition to state 2) with probability prob1To2_t, so z_{i,t+1} ~ dcat(1- prob1To2_t, prob1To2_t, 0,0 , 0) where prob1To2_t represent the probability of an unborn individual to be recruited.
       |      ^
checkRd: (-1) dcatState1Alive1Dead.Rd:58: Lost braces; missing escapes or markup?
    58 | If z_{i,t} = 1, individual i can be recruited (transition to state 2) with probability prob1To2_t, so z_{i,t+1} ~ dcat(1- prob1To2_t, prob1To2_t, 0,0 , 0) where prob1To2_t represent the probability of an unborn individual to be recruited.
       |                                                                                                         ^
checkRd: (-1) dcatState1Alive1Dead.Rd:59: Lost braces; missing escapes or markup?
    59 | If z_{i,t} = 2, individual i can die and transition to z_{i,t+1}=3 with probability prob2To3, or survive with probabil
...[truncated]...
ng for a single node, which must in essence follow a categorical distribution.  However, the prior distribution need not be \code{nimble}'s \code{dcat} distribution, but rather can be any (potentially user-defined) distribution which has the same support as a standard categorical (\code{dcat}) distribution.  Specifically: the distribution must define a discrete random variable, which can only attain values from the set {1, 2, 3, ..., \code{numCategories}}.
       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
NOTE r-release-linux-x86_64

Rd files

checkRd: (-1) dcatState1Alive1Dead.Rd:58: Lost braces; missing escapes or markup?
    58 | If z_{i,t} = 1, individual i can be recruited (transition to state 2) with probability prob1To2_t, so z_{i,t+1} ~ dcat(1- prob1To2_t, prob1To2_t, 0,0 , 0) where prob1To2_t represent the probability of an unborn individual to be recruited.
       |      ^
checkRd: (-1) dcatState1Alive1Dead.Rd:58: Lost braces; missing escapes or markup?
    58 | If z_{i,t} = 1, individual i can be recruited (transition to state 2) with probability prob1To2_t, so z_{i,t+1} ~ dcat(1- prob1To2_t, prob1To2_t, 0,0 , 0) where prob1To2_t represent the probability of an unborn individual to be recruited.
       |                                                                                                         ^
checkRd: (-1) dcatState1Alive1Dead.Rd:59: Lost braces; missing escapes or markup?
    59 | If z_{i,t} = 2, individual i can die and transition to z_{i,t+1}=3 with probability prob2To3, or survive with probabil
...[truncated]...
ng for a single node, which must in essence follow a categorical distribution.  However, the prior distribution need not be \code{nimble}'s \code{dcat} distribution, but rather can be any (potentially user-defined) distribution which has the same support as a standard categorical (\code{dcat}) distribution.  Specifically: the distribution must define a discrete random variable, which can only attain values from the set {1, 2, 3, ..., \code{numCategories}}.
       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
NOTE r-release-macos-arm64

Rd files

checkRd: (-1) dcatState1Alive1Dead.Rd:58: Lost braces; missing escapes or markup?
    58 | If z_{i,t} = 1, individual i can be recruited (transition to state 2) with probability prob1To2_t, so z_{i,t+1} ~ dcat(1- prob1To2_t, prob1To2_t, 0,0 , 0) where prob1To2_t represent the probability of an unborn individual to be recruited.
       |      ^
checkRd: (-1) dcatState1Alive1Dead.Rd:58: Lost braces; missing escapes or markup?
    58 | If z_{i,t} = 1, individual i can be recruited (transition to state 2) with probability prob1To2_t, so z_{i,t+1} ~ dcat(1- prob1To2_t, prob1To2_t, 0,0 , 0) where prob1To2_t represent the probability of an unborn individual to be recruited.
       |                                                                                                         ^
checkRd: (-1) dcatState1Alive1Dead.Rd:59: Lost braces; missing escapes or markup?
    59 | If z_{i,t} = 2, individual i can die and transition to z_{i,t+1}=3 with probability prob2To3, or survive with probabil
...[truncated]...
ng for a single node, which must in essence follow a categorical distribution.  However, the prior distribution need not be \code{nimble}'s \code{dcat} distribution, but rather can be any (potentially user-defined) distribution which has the same support as a standard categorical (\code{dcat}) distribution.  Specifically: the distribution must define a discrete random variable, which can only attain values from the set {1, 2, 3, ..., \code{numCategories}}.
       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
NOTE r-release-macos-x86_64

Rd files

checkRd: (-1) dcatState1Alive1Dead.Rd:58: Lost braces; missing escapes or markup?
    58 | If z_{i,t} = 1, individual i can be recruited (transition to state 2) with probability prob1To2_t, so z_{i,t+1} ~ dcat(1- prob1To2_t, prob1To2_t, 0,0 , 0) where prob1To2_t represent the probability of an unborn individual to be recruited.
       |      ^
checkRd: (-1) dcatState1Alive1Dead.Rd:58: Lost braces; missing escapes or markup?
    58 | If z_{i,t} = 1, individual i can be recruited (transition to state 2) with probability prob1To2_t, so z_{i,t+1} ~ dcat(1- prob1To2_t, prob1To2_t, 0,0 , 0) where prob1To2_t represent the probability of an unborn individual to be recruited.
       |                                                                                                         ^
checkRd: (-1) dcatState1Alive1Dead.Rd:59: Lost braces; missing escapes or markup?
    59 | If z_{i,t} = 2, individual i can die and transition to z_{i,t+1}=3 with probability prob2To3, or survive with probabil
...[truncated]...
ng for a single node, which must in essence follow a categorical distribution.  However, the prior distribution need not be \code{nimble}'s \code{dcat} distribution, but rather can be any (potentially user-defined) distribution which has the same support as a standard categorical (\code{dcat}) distribution.  Specifically: the distribution must define a discrete random variable, which can only attain values from the set {1, 2, 3, ..., \code{numCategories}}.
       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
NOTE r-release-windows-x86_64

Rd files

checkRd: (-1) dcatState1Alive1Dead.Rd:58: Lost braces; missing escapes or markup?
    58 | If z_{i,t} = 1, individual i can be recruited (transition to state 2) with probability prob1To2_t, so z_{i,t+1} ~ dcat(1- prob1To2_t, prob1To2_t, 0,0 , 0) where prob1To2_t represent the probability of an unborn individual to be recruited.
       |      ^
checkRd: (-1) dcatState1Alive1Dead.Rd:58: Lost braces; missing escapes or markup?
    58 | If z_{i,t} = 1, individual i can be recruited (transition to state 2) with probability prob1To2_t, so z_{i,t+1} ~ dcat(1- prob1To2_t, prob1To2_t, 0,0 , 0) where prob1To2_t represent the probability of an unborn individual to be recruited.
       |                                                                                                         ^
checkRd: (-1) dcatState1Alive1Dead.Rd:59: Lost braces; missing escapes or markup?
    59 | If z_{i,t} = 2, individual i can die and transition to z_{i,t+1}=3 with probability prob2To3, or survive with probabil
...[truncated]...
ng for a single node, which must in essence follow a categorical distribution.  However, the prior distribution need not be \code{nimble}'s \code{dcat} distribution, but rather can be any (potentially user-defined) distribution which has the same support as a standard categorical (\code{dcat}) distribution.  Specifically: the distribution must define a discrete random variable, which can only attain values from the set {1, 2, 3, ..., \code{numCategories}}.
       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^

Check History

NOTE 0 OK · 14 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-devel-linux-x86_64-debian-clang

Rd files

checkRd: (-1) dcatState1Alive1Dead.Rd:58: Lost braces; missing escapes or markup?
    58 | If z_{i,t} = 1, individual i can be recruited (transition to state 2) with probability prob1To2_t, so z_{i,t+1} ~ dcat(1- prob1To2_t, prob1To2_t, 0,0 , 0) wher
...[truncated]...
                                                                                                                                                                                                                                                         ^
NOTE r-devel-linux-x86_64-debian-gcc

Rd files

checkRd: (-1) dcatState1Alive1Dead.Rd:58: Lost braces; missing escapes or markup?
    58 | If z_{i,t} = 1, individual i can be recruited (transition to state 2) with probability prob1To2_t, so z_{i,t+1} ~ dcat(1- prob1To2_t, prob1To2_t, 0,0 , 0) wher
...[truncated]...
                                                                                                                                                                                                                                                         ^
NOTE r-devel-linux-x86_64-fedora-clang

dependencies in R code

Namespace in Imports field not imported from: ‘methods’
  All declared Imports should be used.
NOTE r-devel-linux-x86_64-fedora-gcc

dependencies in R code

Namespace in Imports field not imported from: ‘methods’
  All declared Imports should be used.
NOTE r-devel-macos-arm64

Rd files

checkRd: (-1) dcatState1Alive1Dead.Rd:58: Lost braces; missing escapes or markup?
    58 | If z_{i,t} = 1, individual i can be recruited (transition to state 2) with probability prob1To2_t, so z_{i,t+1} ~ dcat(1- prob1To2_t, prob1To2_t, 0,0 , 0) wher
...[truncated]...
                                                                                                                                                                                                                                                         ^
NOTE r-devel-windows-x86_64

Rd files

checkRd: (-1) dcatState1Alive1Dead.Rd:58: Lost braces; missing escapes or markup?
    58 | If z_{i,t} = 1, individual i can be recruited (transition to state 2) with probability prob1To2_t, so z_{i,t+1} ~ dcat(1- prob1To2_t, prob1To2_t, 0,0 , 0) wher
...[truncated]...
                                                                                                                                                                                                                                                         ^
NOTE r-patched-linux-x86_64

Rd files

checkRd: (-1) dcatState1Alive1Dead.Rd:58: Lost braces; missing escapes or markup?
    58 | If z_{i,t} = 1, individual i can be recruited (transition to state 2) with probability prob1To2_t, so z_{i,t+1} ~ dcat(1- prob1To2_t, prob1To2_t, 0,0 , 0) wher
...[truncated]...
                                                                                                                                                                                                                                                         ^
NOTE r-release-linux-x86_64

Rd files

checkRd: (-1) dcatState1Alive1Dead.Rd:58: Lost braces; missing escapes or markup?
    58 | If z_{i,t} = 1, individual i can be recruited (transition to state 2) with probability prob1To2_t, so z_{i,t+1} ~ dcat(1- prob1To2_t, prob1To2_t, 0,0 , 0) wher
...[truncated]...
                                                                                                                                                                                                                                                         ^
NOTE r-release-macos-arm64

Rd files

checkRd: (-1) dcatState1Alive1Dead.Rd:58: Lost braces; missing escapes or markup?
    58 | If z_{i,t} = 1, individual i can be recruited (transition to state 2) with probability prob1To2_t, so z_{i,t+1} ~ dcat(1- prob1To2_t, prob1To2_t, 0,0 , 0) wher
...[truncated]...
                                                                                                                                                                                                                                                         ^
NOTE r-release-macos-x86_64

Rd files

checkRd: (-1) dcatState1Alive1Dead.Rd:58: Lost braces; missing escapes or markup?
    58 | If z_{i,t} = 1, individual i can be recruited (transition to state 2) with probability prob1To2_t, so z_{i,t+1} ~ dcat(1- prob1To2_t, prob1To2_t, 0,0 , 0) wher
...[truncated]...
                                                                                                                                                                                                                                                         ^
NOTE r-release-windows-x86_64

Rd files

checkRd: (-1) dcatState1Alive1Dead.Rd:58: Lost braces; missing escapes or markup?
    58 | If z_{i,t} = 1, individual i can be recruited (transition to state 2) with probability prob1To2_t, so z_{i,t+1} ~ dcat(1- prob1To2_t, prob1To2_t, 0,0 , 0) wher
...[truncated]...
                                                                                                                                                                                                                                                         ^
NOTE r-oldrel-macos-arm64

installed package size

installed size is  6.9Mb
  sub-directories of 1Mb or more:
    doc       4.0Mb
    extdata   1.8Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  6.9Mb
  sub-directories of 1Mb or more:
    doc       4.0Mb
    extdata   1.8Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  6.9Mb
  sub-directories of 1Mb or more:
    doc       4.0Mb
    extdata   1.8Mb

Code

Structure

Lines of code

15,695

Files

124

Compiled share

0%

Has compiled src

No

Language breakdown

R 7,479 (47.7%)Tests 1,045 (6.7%)Docs 4,305 (27.4%)Vignettes 2,866 (18.3%)

API

Exported functions

69

Internal functions

1

Recent export changes

v0.2.1+8 calculateDensity, dcatState1Alive1Dead, dcatState1Alive2Dead +5 more
v0.2.0+7 dbinomLocal_exp, dbinomLocal_normalPlateau, dmultiLocal_normal +4 more  −3 dbinom_sparseLocalSCR, getLocalTraps, rbinom_sparseLocalSCR

Testing & CI

Has tests

Yes

Test-to-code ratio

0.14

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

88.1%

\dontrun example ratio

9.8%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

No

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

3

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.5.0

System requirements

C++ standard

License

GPL-3

License flags

SPDX valid, OSI approved

History

Versions

6

First release

2020-08-20

Latest release

2022-11-30

Avg cadence

140 days

Cold removal rate

100%

Dep drift

1

LOC over versions

v0.1.0: 1,574 LOCv0.1.1: 2,284 LOCv0.1.2: 5,104 LOCv0.1.3: 10,722 LOCv0.2.0: 14,154 LOCv0.2.1: 15,695 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies nimble nimbleSCR

Version History

7 tracked
new 0.2.1 Mar 10, 2026
updated 0.2.1 ← 0.2.0 diff Nov 29, 2022
updated 0.2.0 ← 0.1.3 diff Sep 1, 2022
updated 0.1.3 ← 0.1.2 diff Oct 24, 2021
updated 0.1.2 ← 0.1.1 diff Jun 30, 2021
updated 0.1.1 ← 0.1.0 diff Jan 6, 2021
new 0.1.0 Aug 19, 2020