Skip to content

Commit fc953dd

Browse files
authored
RC 1.1.1 (#995)
* version bump * Documented arguments not in \usage * changes for CRAN check; see Rdatatable/data.table#5658 * avoid tests on cran * remove old checks; no longer supported in current python
1 parent e6cd72f commit fc953dd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+192
-170
lines changed

.github/workflows/old-tensorflow.yaml

Lines changed: 0 additions & 79 deletions
This file was deleted.

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: parsnip
22
Title: A Common API to Modeling and Analysis Functions
3-
Version: 1.1.0.9004
3+
Version: 1.1.1
44
Authors@R: c(
55
person("Max", "Kuhn", , "[email protected]", role = c("aut", "cre")),
66
person("Davis", "Vaughan", , "[email protected]", role = "aut"),
@@ -76,4 +76,4 @@ Config/testthat/edition: 3
7676
Encoding: UTF-8
7777
LazyData: true
7878
Roxygen: list(markdown = TRUE)
79-
RoxygenNote: 7.2.3
79+
RoxygenNote: 7.2.3.9000

NEWS.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# parsnip (development version)
1+
# parsnip 1.1.1
22

3-
* Fixed bug where sparse data was being coerced to non-sparse format doing `predict()`.
3+
* Fixed bug where prediction on rank deficient `lm()` models produced `.pred_res` instead of `.pred`. (#985)
44

5-
* `augment()` now works for censored regression models.
5+
* Fixed bug where sparse data was being coerced to non-sparse format doing `predict()`.
66

77
* For BART models with the `dbarts` engine, `predict()` can now also return the standard error for confidence and prediction intervals (#976).
88

9-
* A few censored regression helper functions were exported: `.extract_surv_status()` and `.extract_surv_time()` (#973, #980).
9+
* `augment()` now works for censored regression models.
1010

11-
* Fixed bug where prediction on rank dificient `lm()` models produced `.pred_res` instead of `.pred`. (#985)
11+
* A few censored regression helper functions were exported: `.extract_surv_status()` and `.extract_surv_time()` (#973, #980).
1212

1313
* Fixed bug where `boost_tree()` models couldn't be fit with 1 predictor if `validation` argument was used. (#994)
1414

R/aaa_models.R

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ model_info_table <-
5454
#' @keywords internal
5555
#' @references "How to build a parsnip model"
5656
#' \url{https://www.tidymodels.org/learn/develop/models/}
57-
#' @examples
57+
#' @examplesIf !parsnip:::is_cran_check()
5858
#' # Access the model data:
5959
#' current_code <- get_model_env()
6060
#' ls(envir = current_code)
@@ -473,7 +473,6 @@ check_interface_val <- function(x) {
473473
#' `"rand_forest"`, etc).
474474
#' @param mode A single character string for the model mode (e.g. "regression").
475475
#' @param eng A single character string for the model engine.
476-
#' @param arg A single character string for the model argument name.
477476
#' @param has_submodel A single logical for whether the argument
478477
#' can make predictions on multiple submodels at once.
479478
#' @param func A named character vector that describes how to call
@@ -483,10 +482,6 @@ check_interface_val <- function(x) {
483482
#' used to invoke the usual linear regression function. In some
484483
#' cases, it is helpful to use `c(fun = "predict")` when using a
485484
#' package's `predict` method.
486-
#' @param fit_obj A list with elements `interface`, `protect`,
487-
#' `func` and `defaults`. See the package vignette "Making a
488-
#' `parsnip` model from scratch".
489-
#' @param pred_obj A list with elements `pre`, `post`, `func`, and `args`.
490485
#' @param type A single character value for the type of prediction. Possible
491486
#' values are: `class`, `conf_int`, `numeric`, `pred_int`, `prob`, `quantile`,
492487
#' and `raw`.
@@ -557,7 +552,7 @@ check_interface_val <- function(x) {
557552
#'
558553
#' @references "How to build a parsnip model"
559554
#' \url{https://www.tidymodels.org/learn/develop/models/}
560-
#' @examples
555+
#' @examplesIf !parsnip:::is_cran_check()
561556
#' # set_new_model("shallow_learning_model")
562557
#'
563558
#' # Show the information about a model:

R/aaa_multi_predict.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ predict.model_spec <- function(object, ...) {
5353
#' `multi_predict_args()` returns a character vector of argument names (or `NA`
5454
#' if none exist).
5555
#' @keywords internal
56-
#' @examples
56+
#' @examplesIf !parsnip:::is_cran_check()
5757
#' lm_model_idea <- linear_reg() %>% set_engine("lm")
5858
#' has_multi_predict(lm_model_idea)
5959
#' lm_model_fit <- fit(lm_model_idea, mpg ~ ., data = mtcars)

R/adds.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#'
33
#' @param x A data frame
44
#' @return The same data frame with a column of 1-based integers named `.row`.
5-
#' @examples
5+
#' @examplesIf !parsnip:::is_cran_check()
66
#' mtcars %>% add_rowindex()
77
#' @export
88
add_rowindex <- function(x) {

R/arguments.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ check_eng_args <- function(args, obj, core_args) {
4040
#' @return An updated model object.
4141
#' @details `set_args()` will replace existing values of the arguments.
4242
#'
43-
#' @examples
43+
#' @examplesIf !parsnip:::is_cran_check()
4444
#' rand_forest()
4545
#'
4646
#' rand_forest() %>%
@@ -294,7 +294,7 @@ make_xy_call <- function(object, target, env) {
294294
#' @param offset A number subtracted off of the number of rows available in the
295295
#' data.
296296
#' @return An integer (and perhaps a warning).
297-
#' @examples
297+
#' @examplesIf !parsnip:::is_cran_check()
298298

299299
#' nearest_neighbor(neighbors= 100) %>%
300300
#' set_engine("kknn") %>%

R/augment.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
#' @references
3838
#' \url{https://www.tidymodels.org/learn/statistics/survival-metrics/}
3939
#' @export
40-
#' @examples
40+
#' @examplesIf !parsnip:::is_cran_check()
4141
#' car_trn <- mtcars[11:32,]
4242
#' car_tst <- mtcars[ 1:10,]
4343
#'

R/bart.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
#'
4343
#' @seealso \Sexpr[stage=render,results=rd]{parsnip:::make_seealso_list("bart")}
4444
#'
45-
#' @examples
45+
#' @examplesIf !parsnip:::is_cran_check()
4646
#' show_engines("bart")
4747
#'
4848
#' bart(mode = "regression", trees = 5)

R/boost_tree.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
#' @seealso \Sexpr[stage=render,results=rd]{parsnip:::make_seealso_list("boost_tree")},
4848
#' [xgb_train()], [C5.0_train()]
4949
#'
50-
#' @examples
50+
#' @examplesIf !parsnip:::is_cran_check()
5151
#' show_engines("boost_tree")
5252
#'
5353
#' boost_tree(mode = "classification", trees = 20)

0 commit comments

Comments
 (0)