Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/copilot-setup-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ jobs:
- name: Install dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
# TEMPORARY: barry (>= 0.2.2) is not on CRAN yet; pull it from
# barryr's main branch. Remove once barry 0.2.2 is on CRAN.
extra-packages: |
any::rcmdcheck
any::tinytest
USCbiostats/barryr
needs: check
3 changes: 3 additions & 0 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ jobs:

- uses: r-lib/actions/setup-r-dependencies@v2
with:
# TEMPORARY: barry (>= 0.2.2) is not on CRAN yet; pull it from
# barryr's main branch. Remove once barry 0.2.2 is on CRAN.
extra-packages: |
any::covr
USCbiostats/barryr
needs: check

- name: Running coverage
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,12 @@ jobs:

- uses: r-lib/actions/setup-r-dependencies@v2
with:
# TEMPORARY: barry (>= 0.2.2) is not on CRAN yet; pull it from
# barryr's main branch. Remove once barry 0.2.2 is on CRAN.
extra-packages: |
any::pkgdown
local::.
USCbiostats/barryr
needs: website

- name: Build site
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/r.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ jobs:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
# TEMPORARY: barry (>= 0.2.2) is not on CRAN yet; pull it from
# barryr's main branch. Remove once barry 0.2.2 is on CRAN.
# (The DESCRIPTION Remotes field is not honored by pak's
# `deps::.`, so the source must be listed here.)
extra-packages: |
USCbiostats/barryr

- name: Build package
run: R CMD build .
Expand Down Expand Up @@ -73,8 +80,11 @@ jobs:

- uses: r-lib/actions/setup-r-dependencies@v2
with:
# TEMPORARY: barry (>= 0.2.2) is not on CRAN yet; pull it from
# barryr's main branch. Remove once barry 0.2.2 is on CRAN.
extra-packages: |
any::rcmdcheck
USCbiostats/barryr
needs: check

- uses: r-lib/actions/check-r-package@v2
Expand Down
6 changes: 4 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: defm
Type: Package
Title: Estimation and Simulation of Multi-Binary Response Models
Version: 0.2.1.0
Version: 0.2.2.0
Authors@R: c(
person("George", "Vega Yon", role=c("aut", "cre"),
email="g.vegayon@gmail.com", comment = c(ORCID = "0000-0002-3171-0844")),
Expand All @@ -23,7 +23,7 @@ Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.3
LinkingTo: Rcpp, barry
LinkingTo: Rcpp, barry (>= 0.2.2)
Imports:
Rcpp,
stats
Expand All @@ -32,3 +32,5 @@ Depends:
stats4
Suggests:
texreg, tinytest, barry
Remotes:
USCbiostats/barryr
13 changes: 13 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# defm 0.2.2.0

* Requires `barry` (>= 0.2.2), which fixes a hash-collision bug that made
`init_defm()` appear to hang for models with many outcome columns
(USCbiostats/barry#24). A 16-outcome model that previously never finished
initializing now takes seconds.

* Long-running computations (e.g., the support enumeration in `init_defm()`)
can now be interrupted from R with Ctrl-C. Note that a model interrupted
mid-initialization is left partially initialized and should be rebuilt
with `new_defm()` before further use.


# defm 0.2.1.0

* Returning to CRAN.
Expand Down
5 changes: 5 additions & 0 deletions src/counters.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#include <Rcpp.h>

// Lets barry check for user interrupts (Ctrl-C) during long-running
// computations such as the support enumeration in init_defm().
#define BARRY_USER_INTERRUPT Rcpp::checkUserInterrupt();

#include <barry/barry.hpp>
#include <barry/models/defm.hpp>

Expand Down
5 changes: 5 additions & 0 deletions src/defm-object.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#include <Rcpp.h>

// Lets barry check for user interrupts (Ctrl-C) during long-running
// computations such as the support enumeration in init_defm().
#define BARRY_USER_INTERRUPT Rcpp::checkUserInterrupt();

#include <barry/barry.hpp>
#include <barry/models/defm.hpp>

Expand Down
5 changes: 5 additions & 0 deletions src/terms.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#include <Rcpp.h>

// Lets barry check for user interrupts (Ctrl-C) during long-running
// computations such as the support enumeration in init_defm().
#define BARRY_USER_INTERRUPT Rcpp::checkUserInterrupt();

#include "barry/barry.hpp"
#include "barry/models/defm.hpp"
#include "defm-common.h"
Expand Down
Loading