Skip to content

Commit e88723c

Browse files
authored
Release candidate 0.1.3 (#80)
* Update NEWS * Use new version of butcher * Rev dep checks * Info on rev dep checks * Update README * v0.1.3 is now on CRAN * Try with `any::yaml`
1 parent c9a13a0 commit e88723c

9 files changed

Lines changed: 138 additions & 54 deletions

File tree

.github/workflows/R-CMD-check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949

5050
- uses: r-lib/actions/setup-r-dependencies@v2
5151
with:
52-
extra-packages: any::rcmdcheck
52+
extra-packages: any::rcmdcheck, any::yaml
5353
needs: check
5454

5555
- name: Install reticulate

DESCRIPTION

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: bundle
22
Title: Serialize Model Objects with a Consistent Interface
3-
Version: 0.1.2.9000
3+
Version: 0.1.3
44
Authors@R: c(
55
person("Julia", "Silge", , "julia.silge@posit.co", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0002-3671-836X")),
@@ -30,7 +30,7 @@ Imports:
3030
withr
3131
Suggests:
3232
bonsai,
33-
butcher (>= 0.3.6.9000),
33+
butcher (>= 0.4.0),
3434
callr,
3535
caret,
3636
covr,
@@ -58,8 +58,6 @@ Suggests:
5858
xgboost (>= 1.6.0.1)
5959
VignetteBuilder:
6060
knitr
61-
Remotes:
62-
tidymodels/butcher
6361
Config/Needs/website: tidyverse/tidytemplate
6462
Config/testthat/edition: 3
6563
Config/usethis/last-upkeep: 2025-12-08

NEWS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# bundle (development version)
1+
# bundle 0.1.3
22

3-
* Make to work with new versions of xgboost models (#75).
3+
* Updated to support new versions of xgboost models (#75).
44

55
# bundle 0.1.2
66

README.Rmd

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ knitr::opts_chunk$set(
2424
<!-- badges: start -->
2525
[![R-CMD-check](https://github.com/rstudio/bundle/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/rstudio/bundle/actions/workflows/R-CMD-check.yaml)
2626
[![CRAN status](https://www.r-pkg.org/badges/version/bundle)](https://CRAN.R-project.org/package=bundle)
27-
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)
28-
[![Codecov test coverage](https://codecov.io/gh/rstudio/bundle/branch/main/graph/badge.svg)](https://app.codecov.io/gh/rstudio/bundle?branch=main)
27+
[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)
2928
[![Codecov test coverage](https://codecov.io/gh/rstudio/bundle/graph/badge.svg)](https://app.codecov.io/gh/rstudio/bundle)
3029
<!-- badges: end -->
3130

@@ -78,10 +77,10 @@ Fit the boosted tree model:
7877
```{r}
7978
# fit an boosted tree with xgboost via parsnip
8079
mod <-
81-
boost_tree(trees = 5, mtry = 3) |>
82-
set_mode("regression") |>
83-
set_engine("xgboost") |>
84-
fit(mpg ~ ., data = mtcars[1:25,])
80+
boost_tree(trees = 5, mtry = 3) |>
81+
set_mode("regression") |>
82+
set_engine("xgboost") |>
83+
fit(mpg ~ ., data = mtcars[1:25, ])
8584
8685
mod
8786
```
@@ -120,7 +119,7 @@ r(
120119
unbundled_mod <-
121120
unbundle(bundled_mod)
122121
123-
predict(unbundled_mod, new_data = mtcars[26:32,])
122+
predict(unbundled_mod, new_data = mtcars[26:32, ])
124123
},
125124
args = list(
126125
bundled_mod = bundled_mod

README.md

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@
99
[![CRAN
1010
status](https://www.r-pkg.org/badges/version/bundle)](https://CRAN.R-project.org/package=bundle)
1111
[![Lifecycle:
12-
experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)
12+
stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)
1313
[![Codecov test
1414
coverage](https://codecov.io/gh/rstudio/bundle/branch/main/graph/badge.svg)](https://app.codecov.io/gh/rstudio/bundle?branch=main)
15-
[![Codecov test
16-
coverage](https://codecov.io/gh/rstudio/bundle/graph/badge.svg)](https://app.codecov.io/gh/rstudio/bundle)
1715
<!-- badges: end -->
1816

1917
Typically, models in R exist in memory and can be saved as `.rds` files.
@@ -89,10 +87,10 @@ Fit the boosted tree model:
8987
``` r
9088
# fit an boosted tree with xgboost via parsnip
9189
mod <-
92-
boost_tree(trees = 5, mtry = 3) |>
93-
set_mode("regression") |>
94-
set_engine("xgboost") |>
95-
fit(mpg ~ ., data = mtcars[1:25,])
90+
boost_tree(trees = 5, mtry = 3) |>
91+
set_mode("regression") |>
92+
set_engine("xgboost") |>
93+
fit(mpg ~ ., data = mtcars[1:25, ])
9694

9795
mod
9896
#> parsnip model object
@@ -110,11 +108,11 @@ mod
110108
#> evaluation_log:
111109
#> iter training_rmse
112110
#> <int> <num>
113-
#> 1 4.618358
114-
#> 2 3.627921
115-
#> 3 2.891176
116-
#> 4 2.300624
117-
#> 5 1.852596
111+
#> 1 4.655552
112+
#> 2 3.648086
113+
#> 3 2.877980
114+
#> 4 2.302021
115+
#> 5 1.850090
118116
```
119117

120118
Note that simply saving and loading the model results in changes to the
@@ -126,8 +124,8 @@ saveRDS(mod, temp_file)
126124
mod2 <- readRDS(temp_file)
127125

128126
compare(mod, mod2, ignore_formula_env = TRUE)
129-
#> `old$fit$ptr` is <pointer: 0x10b535700>
130-
#> `new$fit$ptr` is <pointer: 0x10b56be40>
127+
#> `old$fit$ptr` is <pointer: 0x11a0cf990>
128+
#> `new$fit$ptr` is <pointer: 0x10bed38a0>
131129
```
132130

133131
Saving and reloading `mod2` didn’t preserve XGBoost’s reference to its
@@ -158,7 +156,7 @@ r(
158156
unbundled_mod <-
159157
unbundle(bundled_mod)
160158

161-
predict(unbundled_mod, new_data = mtcars[26:32,])
159+
predict(unbundled_mod, new_data = mtcars[26:32, ])
162160
},
163161
args = list(
164162
bundled_mod = bundled_mod
@@ -167,13 +165,13 @@ r(
167165
#> # A tibble: 7 × 1
168166
#> .pred
169167
#> <dbl>
170-
#> 1 28.7
171-
#> 2 25.0
172-
#> 3 23.7
173-
#> 4 18.0
174-
#> 5 20.3
175-
#> 6 14.9
176-
#> 7 22.2
168+
#> 1 28.6
169+
#> 2 25.8
170+
#> 3 25.8
171+
#> 4 16.7
172+
#> 5 20.2
173+
#> 6 15.3
174+
#> 7 21.2
177175
```
178176

179177
For a more in-depth demonstration of the package, see the [main

cran-comments.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
## revdepcheck results
22

3-
We checked 1 reverse dependency, comparing R CMD check results across CRAN and dev versions of this package.
3+
We checked 3 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.
44

55
* We saw 0 new problems
6-
* We failed to check 0 packages
6+
* We failed to check 1 packages
7+
8+
Issues with CRAN packages are summarised below.
9+
10+
### Failed to check
11+
12+
* ldmppr (NA)

revdep/README.md

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,30 @@
11
# Platform
22

3-
|field |value |
4-
|:--------|:------------------------------|
5-
|version |R version 4.4.0 (2024-04-24) |
6-
|os |macOS 15.0.1 |
7-
|system |aarch64, darwin20 |
8-
|ui |X11 |
9-
|language |(EN) |
10-
|collate |en_US.UTF-8 |
11-
|ctype |en_US.UTF-8 |
12-
|tz |America/Denver |
13-
|date |2024-11-11 |
14-
|pandoc |3.5 @ /opt/homebrew/bin/pandoc |
3+
|field |value |
4+
|:--------|:------------------------------------------|
5+
|version |R version 4.5.2 (2025-10-31) |
6+
|os |macOS Tahoe 26.1 |
7+
|system |aarch64, darwin20 |
8+
|ui |X11 |
9+
|language |(EN) |
10+
|collate |en_US.UTF-8 |
11+
|ctype |en_US.UTF-8 |
12+
|tz |America/Denver |
13+
|date |2025-12-09 |
14+
|pandoc |3.8.3 @ /opt/homebrew/bin/ (via rmarkdown) |
15+
|quarto |1.9.3 @ /usr/local/bin/quarto |
1516

1617
# Dependencies
1718

1819
|package |old |new |Δ |
1920
|:-------|:-----|:----------|:--|
20-
|bundle |0.1.1 |0.1.1.9000 |* |
21+
|bundle |0.1.2 |0.1.2.9000 |* |
2122

2223
# Revdeps
2324

25+
## Failed to check (1)
26+
27+
|package |version |error |warning |note |
28+
|:-------|:-------|:-----|:-------|:----|
29+
|ldmppr |1.0.4 |1 | | |
30+

revdep/cran.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
## revdepcheck results
22

3-
We checked 1 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.
3+
We checked 3 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.
44

55
* We saw 0 new problems
6-
* We failed to check 0 packages
6+
* We failed to check 1 packages
77

8+
Issues with CRAN packages are summarised below.
9+
10+
### Failed to check
11+
12+
* ldmppr (NA)

revdep/failures.md

Lines changed: 72 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,72 @@
1-
*Wow, no problems at all. :)*
1+
# ldmppr
2+
3+
<details>
4+
5+
* Version: 1.0.4
6+
* GitHub: https://github.com/lanedrew/ldmppr
7+
* Source code: https://github.com/cran/ldmppr
8+
* Date/Publication: 2025-02-24 21:00:02 UTC
9+
* Number of recursive dependencies: 128
10+
11+
Run `revdepcheck::revdep_details(, "ldmppr")` for more info
12+
13+
</details>
14+
15+
## In both
16+
17+
* checking whether package ‘ldmppr’ can be installed ... ERROR
18+
```
19+
Installation failed.
20+
See ‘/Users/juliasilge/Work/posit/bundle/revdep/checks.noindex/ldmppr/new/ldmppr.Rcheck/00install.out’ for details.
21+
```
22+
23+
## Installation
24+
25+
### Devel
26+
27+
```
28+
* installing *source* package ‘ldmppr’ ...
29+
** this is package ‘ldmppr’ version ‘1.0.4’
30+
** package ‘ldmppr’ successfully unpacked and MD5 sums checked
31+
** using staged installation
32+
** libs
33+
using C++ compiler: ‘Apple clang version 17.0.0 (clang-1700.4.4.1)’
34+
using C++17
35+
using SDK: ‘MacOSX26.1.sdk’
36+
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Users/juliasilge/Work/posit/bundle/revdep/library.noindex/ldmppr/Rcpp/include' -I'/Users/juliasilge/Work/posit/bundle/revdep/library.noindex/ldmppr/RcppArmadillo/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c RcppExports.cpp -o RcppExports.o
37+
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Users/juliasilge/Work/posit/bundle/revdep/library.noindex/ldmppr/Rcpp/include' -I'/Users/juliasilge/Work/posit/bundle/revdep/library.noindex/ldmppr/RcppArmadillo/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c self_correcting_model.cpp -o self_correcting_model.o
38+
clang++ -arch arm64 -std=gnu++17 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -L/Library/Frameworks/R.framework/Resources/lib -L/opt/R/arm64/lib -o ldmppr.so RcppExports.o self_correcting_model.o -L/Library/Frameworks/R.framework/Resources/lib -lRlapack -L/Library/Frameworks/R.framework/Resources/lib -lRblas -L/opt/gfortran/lib/gcc/aarch64-apple-darwin20.0/14.2.0 -L/opt/gfortran/lib -lemutls_w -lheapt_w -lgfortran -lquadmath -F/Library/Frameworks/R.framework/.. -framework R
39+
ld: warning: search path '/opt/gfortran/lib/gcc/aarch64-apple-darwin20.0/14.2.0' not found
40+
ld: warning: search path '/opt/gfortran/lib' not found
41+
ld: library 'emutls_w' not found
42+
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
43+
make: *** [ldmppr.so] Error 1
44+
ERROR: compilation failed for package ‘ldmppr’
45+
* removing ‘/Users/juliasilge/Work/posit/bundle/revdep/checks.noindex/ldmppr/new/ldmppr.Rcheck/ldmppr’
46+
47+
48+
```
49+
### CRAN
50+
51+
```
52+
* installing *source* package ‘ldmppr’ ...
53+
** this is package ‘ldmppr’ version ‘1.0.4’
54+
** package ‘ldmppr’ successfully unpacked and MD5 sums checked
55+
** using staged installation
56+
** libs
57+
using C++ compiler: ‘Apple clang version 17.0.0 (clang-1700.4.4.1)’
58+
using C++17
59+
using SDK: ‘MacOSX26.1.sdk’
60+
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Users/juliasilge/Work/posit/bundle/revdep/library.noindex/ldmppr/Rcpp/include' -I'/Users/juliasilge/Work/posit/bundle/revdep/library.noindex/ldmppr/RcppArmadillo/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c RcppExports.cpp -o RcppExports.o
61+
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Users/juliasilge/Work/posit/bundle/revdep/library.noindex/ldmppr/Rcpp/include' -I'/Users/juliasilge/Work/posit/bundle/revdep/library.noindex/ldmppr/RcppArmadillo/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c self_correcting_model.cpp -o self_correcting_model.o
62+
clang++ -arch arm64 -std=gnu++17 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -L/Library/Frameworks/R.framework/Resources/lib -L/opt/R/arm64/lib -o ldmppr.so RcppExports.o self_correcting_model.o -L/Library/Frameworks/R.framework/Resources/lib -lRlapack -L/Library/Frameworks/R.framework/Resources/lib -lRblas -L/opt/gfortran/lib/gcc/aarch64-apple-darwin20.0/14.2.0 -L/opt/gfortran/lib -lemutls_w -lheapt_w -lgfortran -lquadmath -F/Library/Frameworks/R.framework/.. -framework R
63+
ld: warning: search path '/opt/gfortran/lib/gcc/aarch64-apple-darwin20.0/14.2.0' not found
64+
ld: warning: search path '/opt/gfortran/lib' not found
65+
ld: library 'emutls_w' not found
66+
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
67+
make: *** [ldmppr.so] Error 1
68+
ERROR: compilation failed for package ‘ldmppr’
69+
* removing ‘/Users/juliasilge/Work/posit/bundle/revdep/checks.noindex/ldmppr/old/ldmppr.Rcheck/ldmppr’
70+
71+
72+
```

0 commit comments

Comments
 (0)