Skip to content

Commit 0dde432

Browse files
Merge pull request #123 from tidymodels/RC-0.5.1
Release candidate 0.5.1
2 parents 81a15bc + c5c4bc6 commit 0dde432

12 files changed

+73
-47
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ config.toml
2121
^\.github$
2222
^CODE_OF_CONDUCT\.md$
2323
^LICENSE\.md$
24+
^CRAN-SUBMISSION$

DESCRIPTION

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
Package: tidypredict
22
Title: Run Predictions Inside the Database
3-
Version: 0.5
3+
Version: 0.5.1.9000
44
Authors@R: c(
5-
person("Edgar", "Ruiz", , "[email protected]", role = c("aut", "cre")),
5+
person("Emil", "Hvitfeldt", , "[email protected]", role = c("aut", "cre")),
6+
person("Edgar", "Ruiz", , "[email protected]", role = "aut"),
67
person("Max", "Kuhn", , "[email protected]", role = "aut")
78
)
89
Description: It parses a fitted 'R' model object, and returns a formula in

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# tidypredict (development version)
22

3+
# tidypredict 0.5.1
4+
5+
- Exported a number of internal functions to be used in {orbital} package
6+
37
# tidypredict 0.5
48

59
- Changes maintainer to Edgar Ruiz

R/model-partykit.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ tidypredict_fit.party <- function(model) {
103103
}
104104

105105
# For {orbital}
106+
#' Extract classprob trees for partykit models
107+
#'
108+
#' For use in orbital package.
106109
#' @keywords internal
107110
#' @export
108111
.extract_partykit_classprob <- function(model) {

R/model-xgboost.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,9 @@ tidypredict_fit.xgb.Booster <- function(model) {
185185
}
186186

187187
# For {orbital}
188+
#' Extract processed xgboost trees
189+
#'
190+
#' For use in orbital package.
188191
#' @keywords internal
189192
#' @export
190193
.extract_xgb_trees <- function(model) {

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ tidy(pm)
119119

120120
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.
121121

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

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

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ several databases back-ends, such as MS SQL:
2424
tidypredict_sql(model, dbplyr::simulate_mssql())
2525
```
2626

27-
## <SQL> (39.6862614802529 + (`wt` * -3.19097213898375)) + (`cyl` * -1.5077949682598)
27+
## <SQL> (39.686261480253 + (`wt` * -3.19097213898374)) + (`cyl` * -1.5077949682598)
2828

2929
## Installation
3030

@@ -47,16 +47,16 @@ remotes::install_github("tidymodels/tidypredict")
4747
number to grow much. The main focus at this time is to add more models
4848
to support.
4949

50-
| Function | Description |
51-
|------------------------------|--------------------------------------------------------------------------------|
52-
| `tidypredict_fit()` | Returns an R formula that calculates the prediction |
53-
| `tidypredict_sql()` | Returns a SQL query based on the formula from `tidypredict_fit()` |
54-
| `tidypredict_to_column()` | Adds a new column using the formula from `tidypredict_fit()` |
55-
| `tidypredict_test()` | Tests `tidyverse` predictions against the model’s native `predict()` function |
56-
| `tidypredict_interval()` | Same as `tidypredict_fit()` but for intervals (only works with `lm` and `glm`) |
50+
| Function | Description |
51+
|----|----|
52+
| `tidypredict_fit()` | Returns an R formula that calculates the prediction |
53+
| `tidypredict_sql()` | Returns a SQL query based on the formula from `tidypredict_fit()` |
54+
| `tidypredict_to_column()` | Adds a new column using the formula from `tidypredict_fit()` |
55+
| `tidypredict_test()` | Tests `tidyverse` predictions against the model’s native `predict()` function |
56+
| `tidypredict_interval()` | Same as `tidypredict_fit()` but for intervals (only works with `lm` and `glm`) |
5757
| `tidypredict_sql_interval()` | Same as `tidypredict_sql()` but for intervals (only works with `lm` and `glm`) |
58-
| `parse_model()` | Creates a list spec based on the R model |
59-
| `as_parsed_model()` | Prepares an object to be recognized as a parsed model |
58+
| `parse_model()` | Creates a list spec based on the R model |
59+
| `as_parsed_model()` | Prepares an object to be recognized as a parsed model |
6060

6161
## How it works
6262

@@ -146,8 +146,8 @@ Conduct](https://contributor-covenant.org/version/2/0/CODE_OF_CONDUCT.html).
146146
By contributing to this project, you agree to abide by its terms.
147147

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

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

cran-comments.md

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,18 @@
11
## Release summary
22

3-
- Addresses CRAN Package Test Results issues
4-
5-
- Changes maintainer to Edgar Ruiz
6-
7-
- Updates author's email addresses.
8-
9-
- Removes dependency with `stringr`
10-
11-
- Fixes issue with `earth` parsed_models (#108)
12-
13-
- Addresses issues with XGBoost models
14-
15-
- Improvements to XGBoosts tests
3+
- Exported a number of internal functions to be used in {orbital} package
164

175
## Comments
186

19-
* Having Max as the maintainer will guarantee good follow through for any communications with CRAN. This is the reason why there is another update is such short order from the previous update in CRAN. Thank you for your understanding.
7+
- Switches maintainer to Emil Hvitfeldt
208

219
## R CMD check results
2210

2311
* 0 errors | 0 warnings | 0 notes
2412

2513
## revdepcheck results
2614

27-
We checked 2 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.
15+
We checked 3 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.
2816

2917
* We saw 0 new problems
3018
* We failed to check 0 packages

man/dot-extract_partykit_classprob.Rd

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/dot-extract_xgb_trees.Rd

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)