Skip to content

Commit f0dab71

Browse files
authored
Spring clean 2023 (#134)
* `usethis::use_tidy_description()` * RStudio -> Posit * update license to pkg authors * update logo, add alt-text * `usethis::use_tidy_coc()` * switch to pak * update gha other than R-CMD-check action
1 parent f2e7ae2 commit f0dab71

11 files changed

+42
-23
lines changed

.github/CODE_OF_CONDUCT.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ representative at an online or offline event.
5959
## Enforcement
6060

6161
Instances of abusive, harassing, or otherwise unacceptable behavior may be
62-
reported to the community leaders responsible for enforcement at codeofconduct@rstudio.com.
62+
reported to the community leaders responsible for enforcement at codeofconduct@posit.co.
6363
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

.github/workflows/pkgdown.yaml

+2-2
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

@@ -39,7 +39,7 @@ jobs:
3939

4040
- name: Deploy to GitHub pages 🚀
4141
if: github.event_name != 'pull_request'
42-
uses: JamesIves/github-pages-deploy-action@4.1.4
42+
uses: JamesIves/github-pages-deploy-action@v4.4.1
4343
with:
4444
clean: false
4545
branch: gh-pages

.github/workflows/pr-commands.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
env:
1515
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v3
1818

1919
- uses: r-lib/actions/pr-fetch@v2
2020
with:
@@ -51,7 +51,7 @@ jobs:
5151
env:
5252
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
5353
steps:
54-
- uses: actions/checkout@v2
54+
- uses: actions/checkout@v3
5555

5656
- uses: r-lib/actions/pr-fetch@v2
5757
with:

.github/workflows/test-coverage.yaml

+21-2
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:
@@ -27,5 +27,24 @@ jobs:
2727
needs: coverage
2828

2929
- name: Test coverage
30-
run: covr::codecov(quiet = FALSE)
30+
run: |
31+
covr::codecov(
32+
quiet = FALSE,
33+
clean = FALSE,
34+
install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package")
35+
)
3136
shell: Rscript {0}
37+
38+
- name: Show testthat output
39+
if: always()
40+
run: |
41+
## --------------------------------------------------------------------
42+
find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true
43+
shell: bash
44+
45+
- name: Upload test results
46+
if: failure()
47+
uses: actions/upload-artifact@v3
48+
with:
49+
name: coverage-test-failures
50+
path: ${{ runner.temp }}/package

DESCRIPTION

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Version: 0.3.0.9000
44
Authors@R: c(
55
person("Michael", "Mahoney", , "mike.mahoney.218@gmail.com", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0003-2402-304X")),
7-
person("Julia", "Silge", , "julia.silge@rstudio.com", role = c("aut"),
8-
comment = c(ORCID = "0000-0002-3671-836X")),
9-
person("RStudio", role = c("cph", "fnd"))
7+
person("Julia", "Silge", , "julia.silge@posit.co", role = "aut",
8+
comment = c(ORCID = "0000-0002-3671-836X")),
9+
person(given = "Posit Software, PBC", role = c("cph", "fnd"))
1010
)
1111
Description: Functions and classes for spatial resampling to use with the
1212
'rsample' package, such as spatial cross-validation (Brenning, 2012)
@@ -47,6 +47,8 @@ Suggests:
4747
whisker,
4848
withr,
4949
yardstick
50+
LinkingTo:
51+
cpp11
5052
VignetteBuilder:
5153
knitr
5254
Config/Needs/website:
@@ -57,6 +59,4 @@ Encoding: UTF-8
5759
LazyData: true
5860
Roxygen: list(markdown = TRUE)
5961
RoxygenNote: 7.2.3
60-
LinkingTo:
61-
cpp11
6262
SystemRequirements: C++11

LICENSE

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
YEAR: 2021
2-
COPYRIGHT HOLDER: RStudio
1+
YEAR: 2023
2+
COPYRIGHT HOLDER: spatialsample authors

LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MIT License
22

3-
Copyright (c) 2021 RStudio
3+
Copyright (c) 2023 spatialsample authors
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.Rmd

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ library(ggplot2)
1515
theme_set(theme_minimal())
1616
```
1717

18-
# spatialsample <a href='https://spatialsample.tidymodels.org'><img src='man/figures/logo.png' align="right" height="139" /></a>
18+
# spatialsample <a href="https://spatialsample.tidymodels.org"><img src="man/figures/logo.png" align="right" height="138" alt="A hand-drawn map with orange roads, blue rivers, green trees, and brown mountains on a beige background" /></a>
1919

2020
<!-- badges: start -->
2121
[![R-CMD-check](https://github.com/tidymodels/spatialsample/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/tidymodels/spatialsample/actions/workflows/R-CMD-check.yaml)
@@ -46,8 +46,8 @@ install.packages("spatialsample")
4646
And the development version from [GitHub](https://github.com/) with:
4747

4848
``` r
49-
# install.packages("devtools")
50-
devtools::install_github("tidymodels/spatialsample")
49+
# install.packages("pak")
50+
pak::pak("tidymodels/spatialsample")
5151
```
5252
## Example
5353

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

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

4-
# spatialsample <a href='https://spatialsample.tidymodels.org'><img src='man/figures/logo.png' align="right" height="139" /></a>
4+
# spatialsample <a href="https://spatialsample.tidymodels.org"><img src="man/figures/logo.png" align="right" height="138" alt="A hand-drawn map with orange roads, blue rivers, green trees, and brown mountains on a beige background" /></a>
55

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

@@ -46,8 +46,8 @@ install.packages("spatialsample")
4646
And the development version from [GitHub](https://github.com/) with:
4747

4848
``` r
49-
# install.packages("devtools")
50-
devtools::install_github("tidymodels/spatialsample")
49+
# install.packages("pak")
50+
pak::pak("tidymodels/spatialsample")
5151
```
5252

5353
## Example

man/figures/logo.png

-796 KB
Loading

man/spatialsample-package.Rd

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)