Skip to content

Commit

Permalink
RC 1.0.2 (#1047)
Browse files Browse the repository at this point in the history
* reknit readme

* update news

* update snapshots with new tidyselect version

* update lifecycle snapshots

* Increment version number to 1.0.2

* don't have examples on windows

Co-authored-by: topepo <[email protected]>
  • Loading branch information
EmilHvitfeldt and topepo authored Oct 16, 2022
1 parent 4b631e6 commit 79baabe
Show file tree
Hide file tree
Showing 19 changed files with 45 additions and 37 deletions.
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: recipes
Title: Preprocessing and Feature Engineering Steps for Modeling
Version: 1.0.1.9000
Version: 1.0.2
Authors@R: c(
person("Max", "Kuhn", , "[email protected]", role = c("aut", "cre")),
person("Hadley", "Wickham", , "[email protected]", role = "aut"),
Expand All @@ -27,7 +27,7 @@ Imports:
gower,
hardhat (>= 1.2.0),
ipred (>= 0.9-12),
lifecycle,
lifecycle (>= 1.0.3),
lubridate (>= 1.8.0),
magrittr,
Matrix,
Expand All @@ -36,7 +36,7 @@ Imports:
stats,
tibble,
tidyr (>= 1.0.0),
tidyselect (>= 1.1.2),
tidyselect (>= 1.2.0),
timeDate,
utils,
vctrs,
Expand Down
10 changes: 5 additions & 5 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# recipes (development version)
# recipes 1.0.2

* A new set of basis functions were added: `step_spline_b()`, `step_spline_convex()`, `step_spline_monotone()`, `step_spline_natural()`, `step_spline_nonnegative()`, and
`step_poly_bernstein()`.

# recipes 1.0.1

* Fixed bug where `step_holiday()` didn't work if it isn't have any missing values. (#1019)

* `step_date()`, `step_dummy()`, `step_dummy_extract()`, `step_holiday()`, `step_ordinalscore()`, and `step_regex()` now returns integer results when appropriate. (#766)

* The default for the `strict` argument in `step_integer()` has been changed from `FALSE` to `TRUE`. The function will thus return integers, rather than whole-number numerics, by default. (#766)

* The default for the `value` argument in `step_intercept()` has been changed from `1` to `1L`. (#766)

# recipes 1.0.1

* Fixed bug where `step_holiday()` didn't work if it isn't have any missing values. (#1019)

# recipes 1.0.0

## Improvements and Other Changes
Expand Down
2 changes: 1 addition & 1 deletion R/nnmf_sparse.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#'
#' @template case-weights-not-supported
#'
#' @examplesIf rlang::is_installed(c("modeldata", "RcppML", "ggplot2"))
#' @examplesIf rlang::is_installed(c("modeldata", "RcppML", "ggplot2")) && .Platform$OS.type != "windows"
#' library(Matrix)
#' data(biomass, package = "modeldata")
#'
Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,18 @@ devtools::install_github("tidymodels/recipes")

## Contributing

- For questions and discussions about tidymodels packages, modeling,
and machine learning, please [post on RStudio
Community](https://community.rstudio.com/c/ml/15).
- For questions and discussions about tidymodels packages, modeling, and
machine learning, please [post on RStudio
Community](https://community.rstudio.com/c/ml/15).

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

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

- Check out further details on [contributing guidelines for tidymodels
packages](https://www.tidymodels.org/contribute/) and [how to get
help](https://www.tidymodels.org/help/).
- Check out further details on [contributing guidelines for tidymodels
packages](https://www.tidymodels.org/contribute/) and [how to get
help](https://www.tidymodels.org/help/).
4 changes: 3 additions & 1 deletion tests/testthat/_snaps/R4.2/selections.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
Code
recipes_eval_select(quos = quos(I(beds:sqft)), data = Sacramento, info = info1)
Condition
Error in `unique.default()`:
Error in `recipes_eval_select()`:
! Problem while evaluating `I(beds:sqft)`.
Caused by error in `unique.default()`:
! object 'beds' not found

2 changes: 1 addition & 1 deletion tests/testthat/_snaps/dummies.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
Condition
Error:
! The `preserve` argument of `step_dummy()` was deprecated in recipes 0.1.16 and is now defunct.
Please use the `keep_original_cols` argument instead.
i Please use the `keep_original_cols` argument instead.

# printing

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/impute_bag.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Condition
Error:
! `step_bagimpute()` was deprecated in recipes 0.1.16 and is now defunct.
Please use `step_impute_bag()` instead.
i Please use `step_impute_bag()` instead.

# printing

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/impute_knn.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Condition
Error:
! `step_knnimpute()` was deprecated in recipes 0.1.16 and is now defunct.
Please use `step_impute_knn()` instead.
i Please use `step_impute_knn()` instead.

# printing

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/impute_lower.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
Condition
Error:
! `step_lowerimpute()` was deprecated in recipes 0.1.16 and is now defunct.
Please use `step_impute_lower()` instead.
i Please use `step_impute_lower()` instead.

# printing

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/impute_mean.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
Condition
Error:
! `step_meanimpute()` was deprecated in recipes 0.1.16 and is now defunct.
Please use `step_impute_mean()` instead.
i Please use `step_impute_mean()` instead.

# printing

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/impute_median.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
Condition
Error:
! `step_medianimpute()` was deprecated in recipes 0.1.16 and is now defunct.
Please use `step_impute_median()` instead.
i Please use `step_impute_median()` instead.

# printing

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/impute_mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
Condition
Error:
! `step_modeimpute()` was deprecated in recipes 0.1.16 and is now defunct.
Please use `step_impute_mode()` instead.
i Please use `step_impute_mode()` instead.

# printing

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/impute_roll.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
Condition
Error:
! `step_rollimpute()` was deprecated in recipes 0.1.16 and is now defunct.
Please use `step_impute_roll()` instead.
i Please use `step_impute_roll()` instead.

# printing

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/nzv.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# altered freq_cut and unique_cut

The `options` argument of `step_nzv()` was deprecated in recipes 0.1.7 and is now defunct.
Please use the arguments `freq_cut` and `unique_cut` instead.
i Please use the arguments `freq_cut` and `unique_cut` instead.

# Deprecation warning

Expand All @@ -11,7 +11,7 @@
Condition
Error:
! The `options` argument of `step_nzv()` was deprecated in recipes 0.1.7 and is now defunct.
Please use the arguments `freq_cut` and `unique_cut` instead.
i Please use the arguments `freq_cut` and `unique_cut` instead.

# printing

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/pls_new.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
Condition
Error:
! The `preserve` argument of `step_pls()` was deprecated in recipes 0.1.16 and is now defunct.
Please use the `keep_original_cols` argument instead.
i Please use the `keep_original_cols` argument instead.

# print method

Expand Down
4 changes: 3 additions & 1 deletion tests/testthat/_snaps/rm.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
Code
prep(rec_1, training = iris %>% slice(1:75))
Condition
Error in `all_of()`:
Error in `recipes_eval_select()`:
! Problem while evaluating `all_of(sepal_vars)`.
Caused by error in `as_indices_impl()`:
! object 'sepal_vars' not found

# printing
Expand Down
4 changes: 3 additions & 1 deletion tests/testthat/_snaps/select.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
Code
prep(rec_1, training = iris_train)
Condition
Error in `all_of()`:
Error in `recipes_eval_select()`:
! Problem while evaluating `all_of(sepal_vars)`.
Caused by error in `as_indices_impl()`:
! object 'sepal_vars' not found

# printing
Expand Down
4 changes: 3 additions & 1 deletion tests/testthat/_snaps/selections.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
Code
recipes_eval_select(quos = quos(log(beds)), data = Sacramento, info = info1)
Condition
Error:
Error in `recipes_eval_select()`:
! Problem while evaluating `log(beds)`.
Caused by error:
! object 'beds' not found

---
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/terms-select.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Condition
Warning:
`terms_select()` was deprecated in recipes 0.1.17.
Please use `recipes_eval_select()` instead.
i Please use `recipes_eval_select()` instead.
Output
[1] "city" "zip" "beds" "baths" "sqft" "type"
[7] "price" "latitude" "longitude"
Expand Down

0 comments on commit 79baabe

Please sign in to comment.