Skip to content

Commit e62849a

Browse files
authored
Release candidate 0.1.2 (#69)
* Release candidate 0.1.2 * Update roxygen, `.Rbuildignore`
1 parent 51fbfb4 commit e62849a

11 files changed

+76
-34
lines changed

.Rbuildignore

+2
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@
1111
^docs$
1212
^pkgdown$
1313
^CRAN-SUBMISSION$
14+
^\.python-version$
15+
^revdep$

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ Config/Needs/website: tidyverse/tidytemplate
6060
Config/testthat/edition: 3
6161
Encoding: UTF-8
6262
Roxygen: list(markdown = TRUE)
63-
RoxygenNote: 7.3.1
63+
RoxygenNote: 7.3.2

NEWS.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# bundle (development version)
22

3-
* Added bundle method for objects from `dbarts::bart()` and, by extension,
4-
`parsnip::bart(engine = "dbarts")` (#64).
3+
* Added bundle method for objects from `dbarts::bart()` and, by extension, `parsnip::bart(engine = "dbarts")` (#64).
54

65
* Bundling xgboost objects now takes extra steps to preserve `nfeatures` and `feature_names` (#67).
76

README.Rmd

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ output: github_document
55
<!-- README.md is generated from README.Rmd. Please edit that file -->
66

77
```{r, include = FALSE}
8-
should_eval <-
9-
rlang::is_installed("xgboost") &&
8+
should_eval <-
9+
rlang::is_installed("xgboost") &&
1010
rlang::is_installed("parsnip") &&
1111
rlang::is_installed("callr")
1212
@@ -55,7 +55,7 @@ We need some way to preserve access to those references. The bundle package prov
5555
knitr::include_graphics("man/figures/diagram_04.png")
5656
```
5757

58-
For more on this diagram, see the [main bundle vignette](https://rstudio.github.io/bundle/articles/bundle.html).
58+
For more on this diagram, see the [main bundle vignette](https://rstudio.github.io/bundle/articles/bundle.html).
5959

6060
When you're ready to save your model, `bundle()` it first. Once you've loaded it in a new setting, `unbundle()` it!
6161

@@ -115,8 +115,8 @@ r(
115115
func = function(bundled_mod) {
116116
library(bundle)
117117
library(parsnip)
118-
119-
unbundled_mod <-
118+
119+
unbundled_mod <-
120120
unbundle(bundled_mod)
121121
122122
predict(unbundled_mod, new_data = mtcars[26:32,])
@@ -133,7 +133,7 @@ For a more in-depth demonstration of the package, see the [main vignette](https:
133133

134134
This project is released with a [Contributor Code of Conduct](https://contributor-covenant.org/version/2/0/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.
135135

136-
- For questions and discussions about our packages, modeling, and machine learning, please [post on RStudio Community](https://community.rstudio.com/new-topic?category_id=15&tags=question).
136+
- For questions and discussions about our packages, modeling, and machine learning, please [post on RStudio Community](https://forum.posit.co/new-topic?category_id=15&tags=question).
137137

138138
- If you think you have encountered a bug, please [submit an issue](https://github.com/rstudio/bundle/issues).
139139

README.md

+26-25
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,13 @@ mod
112112
#> niter: 5
113113
#> nfeatures : 10
114114
#> evaluation_log:
115-
#> iter training_rmse
116-
#> 1 14.640496
117-
#> 2 10.927976
118-
#> 3 8.217181
119-
#> 4 6.262192
120-
#> 5 4.796391
115+
#> iter training_rmse
116+
#> <num> <num>
117+
#> 1 14.631798
118+
#> 2 10.896629
119+
#> 3 8.188981
120+
#> 4 6.173644
121+
#> 5 4.707690
121122
```
122123

123124
Note that simply saving and loading the model results in changes to the
@@ -129,7 +130,7 @@ saveRDS(mod, temp_file)
129130
mod2 <- readRDS(temp_file)
130131

131132
compare(mod, mod2, ignore_formula_env = TRUE)
132-
#> `old$fit$handle` is <pointer: 0x12fa5adc0>
133+
#> `old$fit$handle` is <pointer: 0x11c1707c0>
133134
#> `new$fit$handle` is <pointer: 0x0>
134135
#>
135136
#> `old$fit$handle` is attr(,"class")
@@ -163,8 +164,8 @@ r(
163164
func = function(bundled_mod) {
164165
library(bundle)
165166
library(parsnip)
166-
167-
unbundled_mod <-
167+
168+
unbundled_mod <-
168169
unbundle(bundled_mod)
169170

170171
predict(unbundled_mod, new_data = mtcars[26:32,])
@@ -176,13 +177,13 @@ r(
176177
#> # A tibble: 7 × 1
177178
#> .pred
178179
#> <dbl>
179-
#> 1 22.2
180-
#> 2 20.9
181-
#> 3 19.1
182-
#> 4 13.3
183-
#> 5 16.6
184-
#> 6 13.3
185-
#> 7 17.2
180+
#> 1 22.3
181+
#> 2 22.3
182+
#> 3 20.4
183+
#> 4 14.5
184+
#> 5 14.5
185+
#> 6 12.1
186+
#> 7 17.0
186187
```
187188

188189
For a more in-depth demonstration of the package, see the [main
@@ -195,14 +196,14 @@ This project is released with a [Contributor Code of
195196
Conduct](https://contributor-covenant.org/version/2/0/CODE_OF_CONDUCT.html).
196197
By contributing to this project, you agree to abide by its terms.
197198

198-
- For questions and discussions about our packages, modeling, and
199-
machine learning, please [post on RStudio
200-
Community](https://community.rstudio.com/new-topic?category_id=15&tags=question).
199+
- For questions and discussions about our packages, modeling, and
200+
machine learning, please [post on RStudio
201+
Community](https://forum.posit.co/new-topic?category_id=15&tags=question).
201202

202-
- If you think you have encountered a bug, please [submit an
203-
issue](https://github.com/rstudio/bundle/issues).
203+
- If you think you have encountered a bug, please [submit an
204+
issue](https://github.com/rstudio/bundle/issues).
204205

205-
- Either way, learn how to create and share a
206-
[reprex](https://reprex.tidyverse.org/articles/articles/learn-reprex.html)
207-
(a minimal, reproducible example), to clearly communicate about your
208-
code.
206+
- Either way, learn how to create and share a
207+
[reprex](https://reprex.tidyverse.org/articles/articles/learn-reprex.html)
208+
(a minimal, reproducible example), to clearly communicate about your
209+
code.

revdep/.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
checks
2+
library
3+
checks.noindex
4+
library.noindex
5+
cloud.noindex
6+
data.sqlite
7+
*.html

revdep/README.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Platform
2+
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 |
15+
16+
# Dependencies
17+
18+
|package |old |new |Δ |
19+
|:-------|:-----|:----------|:--|
20+
|bundle |0.1.1 |0.1.1.9000 |* |
21+
22+
# Revdeps
23+

revdep/cran.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## revdepcheck results
2+
3+
We checked 1 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.
4+
5+
* We saw 0 new problems
6+
* We failed to check 0 packages
7+

revdep/failures.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*Wow, no problems at all. :)*

revdep/problems.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*Wow, no problems at all. :)*

tests/testthat/test_bundle_h2o.R

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
test_that("bundling + unbundling h2o fits (regression)", {
2+
skip_on_cran()
23
skip_if(!interactive())
34
skip_if_not_installed("h2o")
45
skip_if_not_installed("butcher")

0 commit comments

Comments
 (0)