Skip to content

Commit 95b4c4e

Browse files
authored
merge pr #52: v0.1.0 on CRAN!
2 parents 7c81ea7 + b12c726 commit 95b4c4e

File tree

9 files changed

+60
-24
lines changed

9 files changed

+60
-24
lines changed

.Rbuildignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@ data-raw/
1414
_pkgdown\.yml$
1515
docs/
1616
pkgdown/
17-
tests/testthat/helper_data\.Rda$
17+
tests/testthat/helper_data\.Rda$
18+
cran-comments.md
19+
^CRAN-RELEASE$

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ jobs:
6868
- name: Install dependencies
6969
run: |
7070
remotes::install_cran("vctrs")
71+
remotes::install_cran("tune")
7172
remotes::install_deps(dependencies = TRUE)
7273
remotes::install_cran("rcmdcheck")
7374
shell: Rscript {0}

DESCRIPTION

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: stacks
22
Title: Tidy Model Stacking
3-
Version: 0.0.0.9000
3+
Version: 0.1.0
44
Authors@R: c(
55
person(given = "Simon",
66
family = "Couch",
@@ -13,7 +13,7 @@ Authors@R: c(
1313
person("RStudio",
1414
role = "cph")
1515
)
16-
Description: Model stacking is an ensembling technique
16+
Description: Model stacking is an ensemble technique
1717
that involves training a model to combine the outputs of many
1818
diverse statistical models, and has been shown to improve
1919
predictive performance in a variety of settings. 'stacks'
@@ -22,14 +22,14 @@ License: MIT + file LICENSE
2222
Depends:
2323
R (>= 2.10)
2424
Imports:
25-
tune (>= 0.1.1),
25+
tune (>= 0.1.2),
2626
dplyr (>= 1.0.0),
2727
rlang (>= 0.4.0),
2828
tibble (>= 2.1.3),
2929
purrr (>= 0.3.2),
3030
parsnip (>= 0.0.4),
3131
workflows (>= 0.1.0),
32-
recipes,
32+
recipes (>= 0.1.15),
3333
yardstick,
3434
tidyr,
3535
dials,
@@ -54,9 +54,6 @@ Suggests:
5454
ranger,
5555
nnet,
5656
kknn
57-
Remotes:
58-
tidymodels/tune,
59-
tidymodels/recipes
6057
Encoding: UTF-8
6158
LazyData: true
6259
Roxygen: list(markdown = TRUE)

NEWS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# stacks
2+
3+
### v 0.1.0
4+
5+
Initial release.

README.Rmd

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ output: github_document
33
---
44

55
<!-- badges: start -->
6-
[![R build status](https://github.com/simonpcouch/stacks/workflows/R-CMD-check/badge.svg)](https://github.com/simonpcouch/stacks/actions)
6+
[![R build status](https://github.com/simonpcouch/stacks/workflows/R-CMD-check/badge.svg)](https://github.com/tidymodels/stacks/actions)
77
[![Codecov test coverage](https://codecov.io/gh/tidymodels/stacks/branch/main/graph/badge.svg)](https://codecov.io/gh/tidymodels/stacks?branch=main)
88
[![CRAN status](https://www.r-pkg.org/badges/version/stacks)](https://CRAN.R-project.org/package=stacks)
9-
[![lifecycle](https://img.shields.io/badge/lifecycle-experimental-blue.svg)](https://www.tidyverse.org/lifecycle/#experimental)
109
<!-- badges: end -->
1110

1211
```{r setup, include=FALSE}
@@ -19,7 +18,7 @@ stacks is an R package for model stacking that aligns with the tidymodels. Model
1918

2019
The process goes something like this:
2120

22-
1. Define candidate ensemble members using functionality from [rsample](https://rsample.tidymodels.org/), [parsnip](https://parsnip.tidymodels.org/), [workflows](https://workflows.tidymodels.org/), [recipes](https://recipes.tidymodels.org/), and [tune](http://tune.tidymodels.org/)
21+
1. Define candidate ensemble members using functionality from [rsample](https://rsample.tidymodels.org/), [parsnip](https://parsnip.tidymodels.org/), [workflows](https://workflows.tidymodels.org/), [recipes](https://recipes.tidymodels.org/), and [tune](https://tune.tidymodels.org/)
2322
2. Initialize a `data_stack` object with `stacks()`
2423
3. Iteratively add candidate ensemble members to the `data_stack` with `add_candidates()`
2524
4. Evaluate how to combine their predictions with `blend_predictions()`
@@ -64,13 +63,13 @@ The full visual outline for these steps can be found [here](https://github.com/t
6463

6564
## contributing
6665

67-
This project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By contributing to this project, you agree to abide by its terms.
66+
This project is released with a [Contributor Code of Conduct](https://github.com/tidymodels/stacks/blob/main/CODE_OF_CONDUCT.md). By contributing to this project, you agree to abide by its terms.
6867

69-
- For questions and discussions about tidymodels packages, modeling, and machine learning, please [post on RStudio Community](https://rstd.io/tidymodels-community).
68+
- 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).
7069

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

73-
- Either way, learn how to create and share a [reprex](https://rstd.io/reprex) (a minimal, reproducible example), to clearly communicate about your code.
72+
- 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.
7473

7574
- 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/).
7675

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
<!-- badges: start -->
33

44
[![R build
5-
status](https://github.com/simonpcouch/stacks/workflows/R-CMD-check/badge.svg)](https://github.com/simonpcouch/stacks/actions)
5+
status](https://github.com/simonpcouch/stacks/workflows/R-CMD-check/badge.svg)](https://github.com/tidymodels/stacks/actions)
66
[![Codecov test
77
coverage](https://codecov.io/gh/tidymodels/stacks/branch/main/graph/badge.svg)](https://codecov.io/gh/tidymodels/stacks?branch=main)
88
[![CRAN
99
status](https://www.r-pkg.org/badges/version/stacks)](https://CRAN.R-project.org/package=stacks)
10-
[![lifecycle](https://img.shields.io/badge/lifecycle-experimental-blue.svg)](https://www.tidyverse.org/lifecycle/#experimental)
1110
<!-- badges: end -->
1211

1312
## stacks - tidy model stacking <a href='https://stacks.tidymodels.org'><img src='man/figures/logo.png' align="right" height="280" /></a>
@@ -25,7 +24,7 @@ The process goes something like this:
2524
[parsnip](https://parsnip.tidymodels.org/),
2625
[workflows](https://workflows.tidymodels.org/),
2726
[recipes](https://recipes.tidymodels.org/), and
28-
[tune](http://tune.tidymodels.org/)
27+
[tune](https://tune.tidymodels.org/)
2928
2. Initialize a `data_stack` object with `stacks()`
3029
3. Iteratively add candidate ensemble members to the `data_stack` with
3130
`add_candidates()`
@@ -112,19 +111,18 @@ vignette for an example of how this grammar is implemented\!
112111

113112
## contributing
114113

115-
This project is released with a [Contributor Code of
116-
Conduct](CODE_OF_CONDUCT.md). By contributing to this project, you agree
114+
This project is released with a [Contributor Code of Conduct](https://github.com/tidymodels/stacks/blob/main/CODE_OF_CONDUCT.md). By contributing to this project, you agree
117115
to abide by its terms.
118116

119117
- For questions and discussions about tidymodels packages, modeling,
120118
and machine learning, please [post on RStudio
121-
Community](https://rstd.io/tidymodels-community).
119+
Community](https://community.rstudio.com/new-topic?category_id=15&tags=tidymodels,question).
122120

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

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

130128
- Check out further details on [contributing guidelines for tidymodels

cran-comments.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# stacks 0.1.0
2+
3+
This submission is a resubmission following a request to adjust a URL with
4+
200 status.
5+
6+
## Test environments
7+
8+
* local macOS install, R 3.6.3
9+
* macOS (on github actions), release
10+
* ubuntu 16.04 (on github actions), release, devel
11+
* windows (on github actions), R 3.6.3, release
12+
* windows (on win-builder), devel
13+
14+
## R CMD check results
15+
16+
There were 0 ERRORs, 0 WARNINGs, and 0 NOTEs on all systems except
17+
the following NOTE on win-builder:
18+
19+
```
20+
* checking CRAN incoming feasibility ... NOTE
21+
Maintainer: 'Simon Couch <[email protected]>'
22+
23+
New submission
24+
```
25+
26+
## Reverse dependencies
27+
28+
This package currently has no reverse dependencies.

docs/index.html

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

tests/testthat/test_utils.R

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ context("helpers")
33
if ((!on_cran()) || interactive()) {load(test_path("helper_data.Rda"))}
44

55
test_that("object types relate as expected", {
6+
skip_on_cran()
7+
68
atts_d <- attributes(st_reg_1)
79

810
expect_true(check_inherits(st_reg_1, "data_stack"))
@@ -19,6 +21,8 @@ test_that("object types relate as expected", {
1921
})
2022

2123
test_that("control_* functions work", {
24+
skip_on_cran()
25+
2226
ctrl_grid <- control_stack_grid()
2327
ctrl_bayes <- control_stack_bayes()
2428
ctrl_res <- control_stack_resamples()
@@ -37,6 +41,8 @@ test_that("control_* functions work", {
3741
})
3842

3943
test_that("misc. utilities work", {
44+
skip_on_cran()
45+
4046
expect_error(check_inherits("howdy", "numeric"), "`howdy` needs to inherit")
4147
expect_true(check_inherits("howdy", "character"))
4248

0 commit comments

Comments
 (0)