Skip to content

Commit 815828f

Browse files
authored
Spring clean 2023 🧼 (#907)
* update lifecycle badges via `usethis::use_lifecycle()` * update Posit name * update logo, add alt text * `usethis::use_tidy_coc()` * update readme badges * switch to pak * add alt-text * `document()` * update gha
1 parent 74439c6 commit 815828f

22 files changed

+289
-80
lines changed

‎CODE_OF_CONDUCT.md renamed to ‎.github/CODE_OF_CONDUCT.md

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ We as members, contributors, and leaders pledge to make participation in our
66
community a harassment-free experience for everyone, regardless of age, body
77
size, visible or invisible disability, ethnicity, sex characteristics, gender
88
identity and expression, level of experience, education, socio-economic status,
9-
nationality, personal appearance, race, religion, or sexual identity and
10-
orientation.
9+
nationality, personal appearance, race, caste, color, religion, or sexual
10+
identity and orientation.
1111

1212
We pledge to act and interact in ways that contribute to an open, welcoming,
1313
diverse, inclusive, and healthy community.
@@ -21,25 +21,25 @@ community include:
2121
* Being respectful of differing opinions, viewpoints, and experiences
2222
* Giving and gracefully accepting constructive feedback
2323
* Accepting responsibility and apologizing to those affected by our mistakes,
24-
and learning from the experience
24+
and learning from the experience
2525
* Focusing on what is best not just for us as individuals, but for the overall
26-
community
26+
community
2727

2828
Examples of unacceptable behavior include:
2929

30-
* The use of sexualized language or imagery, and sexual attention or
31-
advances of any kind
30+
* The use of sexualized language or imagery, and sexual attention or advances of
31+
any kind
3232
* Trolling, insulting or derogatory comments, and personal or political attacks
3333
* Public or private harassment
34-
* Publishing others' private information, such as a physical or email
35-
address, without their explicit permission
34+
* Publishing others' private information, such as a physical or email address,
35+
without their explicit permission
3636
* Other conduct which could reasonably be considered inappropriate in a
37-
professional setting
37+
professional setting
3838

3939
## Enforcement Responsibilities
4040

41-
Community leaders are responsible for clarifying and enforcing our standards
42-
of acceptable behavior and will take appropriate and fair corrective action in
41+
Community leaders are responsible for clarifying and enforcing our standards of
42+
acceptable behavior and will take appropriate and fair corrective action in
4343
response to any behavior that they deem inappropriate, threatening, offensive,
4444
or harmful.
4545

@@ -50,17 +50,17 @@ decisions when appropriate.
5050

5151
## Scope
5252

53-
This Code of Conduct applies within all community spaces, and also applies
54-
when an individual is officially representing the community in public spaces.
55-
Examples of representing our community include using an official e-mail
56-
address, posting via an official social media account, or acting as an appointed
53+
This Code of Conduct applies within all community spaces, and also applies when
54+
an individual is officially representing the community in public spaces.
55+
Examples of representing our community include using an official e-mail address,
56+
posting via an official social media account, or acting as an appointed
5757
representative at an online or offline event.
5858

5959
## Enforcement
6060

6161
Instances of abusive, harassing, or otherwise unacceptable behavior may be
62-
reported to the community leaders responsible for enforcement at [INSERT CONTACT
63-
METHOD]. All complaints will be reviewed and investigated promptly and fairly.
62+
reported to the community leaders responsible for enforcement at [email protected].
63+
All complaints will be reviewed and investigated promptly and fairly.
6464

6565
All community leaders are obligated to respect the privacy and security of the
6666
reporter of any incident.
@@ -114,15 +114,13 @@ community.
114114
## Attribution
115115

116116
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
117-
version 2.0,
118-
available at https://www.contributor-covenant.org/version/2/0/
119-
code_of_conduct.html.
117+
version 2.1, available at
118+
<https://www.contributor-covenant.org/version/2/1/code_of_conduct.html>.
120119

121-
Community Impact Guidelines were inspired by [Mozilla's code of conduct
122-
enforcement ladder](https://github.com/mozilla/diversity).
123-
124-
[homepage]: https://www.contributor-covenant.org
120+
Community Impact Guidelines were inspired by
121+
[Mozilla's code of conduct enforcement ladder][https://github.com/mozilla/inclusion].
125122

126123
For answers to common questions about this code of conduct, see the FAQ at
127-
https://www.contributor-covenant.org/faq. Translations are available at https://
128-
www.contributor-covenant.org/translations.
124+
<https://www.contributor-covenant.org/faq>. Translations are available at <https://www.contributor-covenant.org/translations>.
125+
126+
[homepage]: https://www.contributor-covenant.org

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

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
22
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
33
#
44
# NOTE: This workflow is overkill for most R packages and
@@ -23,9 +23,10 @@ jobs:
2323
fail-fast: false
2424
matrix:
2525
config:
26-
- {os: macOS-latest, r: 'release'}
26+
- {os: macos-latest, r: 'release'}
27+
2728
- {os: windows-latest, r: 'release'}
28-
# Use older ubuntu to maximise backward compatibility
29+
2930
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
3031
- {os: ubuntu-latest, r: 'release'}
3132
- {os: ubuntu-latest, r: 'oldrel-1'}
@@ -39,7 +40,7 @@ jobs:
3940
CXX14FLAGS: -Wall -g -02
4041

4142
steps:
42-
- uses: actions/checkout@v2
43+
- uses: actions/checkout@v3
4344

4445
- uses: r-lib/actions/setup-pandoc@v2
4546

@@ -51,7 +52,8 @@ jobs:
5152

5253
- uses: r-lib/actions/setup-r-dependencies@v2
5354
with:
54-
extra-packages: rcmdcheck
55+
extra-packages: any::rcmdcheck
56+
needs: check
5557

5658
- name: Install dev reticulate
5759
run: pak::pkg_install('reticulate')
@@ -70,15 +72,10 @@ jobs:
7072
shell: Rscript {0}
7173

7274
- uses: r-lib/actions/check-r-package@v2
75+
with:
76+
upload-snapshots: true
7377

7478
- name: Show testthat output
7579
if: always()
7680
run: find check -name 'testthat.Rout*' -exec cat '{}' \; || true
7781
shell: bash
78-
79-
- name: Upload check results
80-
if: failure()
81-
uses: actions/upload-artifact@main
82-
with:
83-
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
84-
path: check

‎.github/workflows/pkgdown.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
env:
2121
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
2222
steps:
23-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v3
2424

2525
- uses: r-lib/actions/setup-pandoc@v2
2626

@@ -51,7 +51,7 @@ jobs:
5151

5252
- name: Deploy to GitHub pages 🚀
5353
if: github.event_name != 'pull_request'
54-
uses: JamesIves/[email protected].4
54+
uses: JamesIves/github-pages-deploy-action@v4.4.1
5555
with:
5656
clean: false
5757
branch: gh-pages
Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
22
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
33
on:
44
issue_comment:
@@ -14,22 +14,24 @@ jobs:
1414
env:
1515
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v3
1818

19-
- uses: r-lib/actions/pr-fetch@v1
19+
- uses: r-lib/actions/pr-fetch@v2
2020
with:
2121
repo-token: ${{ secrets.GITHUB_TOKEN }}
2222

23-
- uses: r-lib/actions/setup-r@v1
23+
- uses: r-lib/actions/setup-r@v2
2424
with:
2525
use-public-rspm: true
2626

27-
- uses: r-lib/actions/setup-r-dependencies@v1
27+
- uses: r-lib/actions/setup-r-dependencies@v2
2828
with:
29-
extra-packages: roxygen2
29+
extra-packages: any::roxygen2
30+
needs: pr-document
3031

3132
- name: Document
32-
run: Rscript -e 'roxygen2::roxygenise()'
33+
run: roxygen2::roxygenise()
34+
shell: Rscript {0}
3335

3436
- name: commit
3537
run: |
@@ -38,7 +40,7 @@ jobs:
3840
git add man/\* NAMESPACE
3941
git commit -m 'Document'
4042
41-
- uses: r-lib/actions/pr-push@v1
43+
- uses: r-lib/actions/pr-push@v2
4244
with:
4345
repo-token: ${{ secrets.GITHUB_TOKEN }}
4446

@@ -49,19 +51,21 @@ jobs:
4951
env:
5052
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
5153
steps:
52-
- uses: actions/checkout@v2
54+
- uses: actions/checkout@v3
5355

54-
- uses: r-lib/actions/pr-fetch@v1
56+
- uses: r-lib/actions/pr-fetch@v2
5557
with:
5658
repo-token: ${{ secrets.GITHUB_TOKEN }}
5759

58-
- uses: r-lib/actions/setup-r@v1
60+
- uses: r-lib/actions/setup-r@v2
5961

6062
- name: Install dependencies
61-
run: Rscript -e 'install.packages("styler")'
63+
run: install.packages("styler")
64+
shell: Rscript {0}
6265

6366
- name: Style
64-
run: Rscript -e 'styler::style_pkg()'
67+
run: styler::style_pkg()
68+
shell: Rscript {0}
6569

6670
- name: commit
6771
run: |
@@ -70,6 +74,6 @@ jobs:
7074
git add \*.R
7175
git commit -m 'Style'
7276
73-
- uses: r-lib/actions/pr-push@v1
77+
- uses: r-lib/actions/pr-push@v2
7478
with:
7579
repo-token: ${{ secrets.GITHUB_TOKEN }}

‎.github/workflows/test-coverage.yaml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1616

1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v3
1919

2020
- uses: r-lib/actions/setup-r@v2
2121
with:
@@ -43,5 +43,24 @@ jobs:
4343
shell: Rscript {0}
4444

4545
- name: Test coverage
46-
run: covr::codecov()
46+
run: |
47+
covr::codecov(
48+
quiet = FALSE,
49+
clean = FALSE,
50+
install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package")
51+
)
4752
shell: Rscript {0}
53+
54+
- name: Show testthat output
55+
if: always()
56+
run: |
57+
## --------------------------------------------------------------------
58+
find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true
59+
shell: bash
60+
61+
- name: Upload test results
62+
if: failure()
63+
uses: actions/upload-artifact@v3
64+
with:
65+
name: coverage-test-failures
66+
path: ${{ runner.temp }}/package

‎DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Authors@R: c(
55
person("Max", "Kuhn", , "[email protected]", role = c("aut", "cre")),
66
person("Davis", "Vaughan", , "[email protected]", role = "aut"),
77
person("Emil", "Hvitfeldt", , "[email protected]", role = "ctb"),
8-
person("Posit Software PBC", role = c("cph", "fnd"))
8+
person("Posit Software, PBC", role = c("cph", "fnd"))
99
)
1010
Maintainer: Max Kuhn <[email protected]>
1111
Description: A common interface is provided to allow users to specify a

‎NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ importFrom(hardhat,extract_spec_parsnip)
345345
importFrom(hardhat,frequency_weights)
346346
importFrom(hardhat,importance_weights)
347347
importFrom(hardhat,tune)
348+
importFrom(lifecycle,deprecated)
348349
importFrom(magrittr,"%>%")
349350
importFrom(pillar,type_sum)
350351
importFrom(purrr,"%||%")

‎R/parsnip-package.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
#' @importFrom dplyr arrange bind_cols bind_rows collect full_join group_by
1212
#' @importFrom dplyr mutate pull rename select starts_with summarise tally
1313
#' @importFrom generics tunable varying_args tune_args
14+
#' @importFrom ggplot2 autoplot
1415
#' @importFrom glue glue_collapse
16+
#' @importFrom lifecycle deprecated
1517
#' @importFrom pillar type_sum
1618
#' @importFrom purrr as_vector imap imap_lgl map map_chr map_dbl map_df map_dfr
1719
#' @importFrom purrr map_lgl %||%
@@ -27,7 +29,6 @@
2729
#' @importFrom utils capture.output getFromNamespace globalVariables head
2830
#' @importFrom utils methods stack
2931
#' @importFrom vctrs vec_size vec_unique
30-
#' @importFrom ggplot2 autoplot
3132
## usethis namespace: end
3233
NULL
3334

‎README.Rmd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ knitr::opts_chunk$set(
1313
)
1414
```
1515

16-
# parsnip <a href='https://parsnip.tidymodels.org'><img src='man/figures/logo.png' style='float: right' height="139" /></a>
16+
# parsnip <a href="https://parsnip.tidymodels.org/"><img src="man/figures/logo.png" align="right" height="138" alt="a drawing of a parsnip on a beige background" /></a>
1717

1818
<!-- badges: start -->
19-
[![R-CMD-check](https://github.com/tidymodels/parsnip/workflows/R-CMD-check/badge.svg)](https://github.com/tidymodels/parsnip/actions)
20-
[![Coverage status](https://codecov.io/gh/tidymodels/parsnip/branch/main/graph/badge.svg)](https://codecov.io/github/tidymodels/parsnip?branch=main)
19+
[![R-CMD-check](https://github.com/tidymodels/parsnip/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/tidymodels/parsnip/actions/workflows/R-CMD-check.yaml)
20+
[![Codecov test coverage](https://codecov.io/gh/tidymodels/parsnip/branch/main/graph/badge.svg)](https://app.codecov.io/gh/tidymodels/parsnip?branch=main)
2121
[![CRAN status](https://www.r-pkg.org/badges/version/parsnip)](https://CRAN.R-project.org/package=parsnip)
2222
[![Downloads](https://cranlogs.r-pkg.org/badges/parsnip)](https://CRAN.R-project.org/package=parsnip)
2323
[![lifecycle](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html)
@@ -37,8 +37,8 @@ install.packages("tidymodels")
3737
install.packages("parsnip")
3838
3939
# Or the development version from GitHub:
40-
# install.packages("devtools")
41-
devtools::install_github("tidymodels/parsnip")
40+
# install.packages("pak")
41+
pak::pak("tidymodels/parsnip")
4242
```
4343

4444

‎README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11

22
<!-- README.md is generated from README.Rmd. Please edit that file -->
33

4-
# parsnip <a href='https://parsnip.tidymodels.org'><img src='man/figures/logo.png' style='float: right' height="139" /></a>
4+
# parsnip <a href="https://parsnip.tidymodels.org/"><img src="man/figures/logo.png" align="right" height="138" alt="a drawing of a parsnip on a beige background" /></a>
55

66
<!-- badges: start -->
77

8-
[![R-CMD-check](https://github.com/tidymodels/parsnip/workflows/R-CMD-check/badge.svg)](https://github.com/tidymodels/parsnip/actions)
9-
[![Coverage
10-
status](https://codecov.io/gh/tidymodels/parsnip/branch/main/graph/badge.svg)](https://codecov.io/github/tidymodels/parsnip?branch=main)
8+
[![R-CMD-check](https://github.com/tidymodels/parsnip/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/tidymodels/parsnip/actions/workflows/R-CMD-check.yaml)
9+
[![Codecov test
10+
coverage](https://codecov.io/gh/tidymodels/parsnip/branch/main/graph/badge.svg)](https://app.codecov.io/gh/tidymodels/parsnip?branch=main)
1111
[![CRAN
1212
status](https://www.r-pkg.org/badges/version/parsnip)](https://CRAN.R-project.org/package=parsnip)
1313
[![Downloads](https://cranlogs.r-pkg.org/badges/parsnip)](https://CRAN.R-project.org/package=parsnip)
@@ -30,8 +30,8 @@ install.packages("tidymodels")
3030
install.packages("parsnip")
3131

3232
# Or the development version from GitHub:
33-
# install.packages("devtools")
34-
devtools::install_github("tidymodels/parsnip")
33+
# install.packages("pak")
34+
pak::pak("tidymodels/parsnip")
3535
```
3636

3737
## Getting started
Lines changed: 21 additions & 1 deletion
Loading

0 commit comments

Comments
 (0)