Skip to content

Commit fac168b

Browse files
Merge 7b0b8aa into 9305b62
2 parents 9305b62 + 7b0b8aa commit fac168b

File tree

101 files changed

+1072
-239
lines changed

Some content is hidden

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

101 files changed

+1072
-239
lines changed

.Rbuildignore

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
1-
^Meta$
2-
^doc$
1+
^.*-in_tree$
32
^.*\.Rproj$
4-
^\.Rproj\.user$
53
^API$
6-
^README\.Rmd$
4+
^CONTRIBUTING\.md$
5+
^LICENSE\.md$
6+
^Meta$
77
^README-.*\.png$
8-
^appveyor\.yml$
9-
^tic\.R$
10-
^docs$
11-
^_pkgdown\.yml$
12-
CONTRIBUTING.md
8+
^README\.Rmd$
9+
^\.Rproj\.user$
10+
^\.github$
1311
^\.gitsum$
14-
^gitsum$
15-
revdep
12+
^\.pre-commit-config\.yaml$
13+
^_pkgdown\.yml$
1614
^cran-comments\.md$
15+
^doc$
16+
^docs$
17+
^gitsum$
18+
^inst/WORDLIST$
19+
^inst/hooks/.*$
20+
^revdep$
1721
^tests/testmanual$
18-
^\.pre-commit-config\.yaml$
19-
^brew\-log$
20-
^\.github/$
22+
^tic\.R$
2123
^touchstone$
22-
^\.github$
23-
^LICENSE\.md$
24-
^inst/hooks/$
25-
^inst/WORDLIST$
24+
^vignettes/gsoc_proposal$

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
tests/testthat/**/*_tree linguist-generated=true
1+
tests/testthat/**/*_tree linguist-generated=true

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ on:
1616

1717
name: R-CMD-check
1818

19+
concurrency:
20+
group: ${{ github.action }}-${{ github.event_path }}
21+
cancel-in-progress: true
22+
23+
1924
jobs:
2025
R-CMD-check:
2126
runs-on: ${{ matrix.config.os }}
@@ -27,9 +32,10 @@ jobs:
2732
matrix:
2833
config:
2934
- {os: macOS-latest, r: 'release'}
35+
- {os: windows-latest, r: 'devel'}
3036
- {os: windows-latest, r: 'release'}
31-
- {os: windows-latest, r: '3.6', rspm: "https://packagemanager.rstudio.com/cran/latest"}
32-
- {os: ubuntu-18.04, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest", http-user-agent: "R/4.0.0 (ubuntu-18.04) R (4.0.0 x86_64-pc-linux-gnu x86_64 linux-gnu) on GitHub Actions" }
37+
- {os: windows-latest, r: '3.6', rspm: "https://packagemanager.rstudio.com/cran/latest"}
38+
- {os: ubuntu-18.04, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest", http-user-agent: "R/4.0.0 (ubuntu-18.04) R (4.0.0 x86_64-pc-linux-gnu x86_64 linux-gnu) on GitHub Actions" }
3339
- {os: ubuntu-18.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest"}
3440
- {os: ubuntu-18.04, r: 'oldrel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest"}
3541
- {os: ubuntu-18.04, r: '3.6', rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest"}

.github/workflows/cancel.yaml

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

.github/workflows/check-full.yaml

Whitespace-only changes.

.github/workflows/pkgdown.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
on:
22
push:
3-
branches: master
3+
branches: main
44

55
name: pkgdown
66

.github/workflows/pre-commit.yaml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: pre-commit
2+
on:
3+
push:
4+
branches-ignore:
5+
- 'master'
6+
- 'main'
7+
pull_request:
8+
types: [opened, synchronize, reopened, ready_for_review]
9+
10+
jobs:
11+
pre-commit:
12+
runs-on: ubuntu-18.04
13+
if: >-
14+
!contains(github.event.head_commit.message, 'ci skip') &&
15+
(
16+
startsWith(github.ref, 'refs/heads') ||
17+
github.event.pull_request.draft == false
18+
)
19+
steps:
20+
- name: Cancel Previous Runs
21+
uses: styfle/cancel-workflow-action@0.6.0
22+
with:
23+
access_token: ${{ github.token }}
24+
- uses: actions/checkout@v2
25+
with:
26+
fetch-depth: 0
27+
- name: Install system dependencies
28+
if: runner.os == 'Linux'
29+
run: |
30+
# your system installation code here
31+
# sudo apt-get install -y libcurl4-openssl-dev
32+
- name: Set up Python
33+
uses: actions/setup-python@v2
34+
with:
35+
python-version: "3.8"
36+
architecture: "x64"
37+
- name: Run pre-commit
38+
uses: pre-commit/action@v2.0.3
39+
- name: Commit files
40+
if: failure() && startsWith(github.ref, 'refs/heads')
41+
run: |
42+
if [[ `git status --porcelain --untracked-files=no` ]]; then
43+
git config --local user.email "github-actions[bot]@users.noreply.github.com"
44+
git config --local user.name "github-actions[bot]"
45+
git checkout -- .github/workflows
46+
git commit -m "pre-commit" -a
47+
fi
48+
- name: Push changes
49+
if: failure() && startsWith(github.ref, 'refs/heads')
50+
uses: ad-m/github-push-action@master
51+
with:
52+
github_token: ${{ secrets.GITHUB_TOKEN }}
53+
branch: ${{ github.ref }}
54+
env:
55+
RENV_CONFIG_CACHE_ENABLED: FALSE

.github/workflows/test-coverage.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
on:
22
push:
33
branches:
4-
- master
4+
- main
55
pull_request:
66
branches:
7-
- master
7+
- main
88

99
name: test-coverage
1010

11+
concurrency:
12+
group: ${{ github.action }}-${{ github.event_path }}
13+
cancel-in-progress: true
14+
15+
1116
jobs:
1217
test-coverage:
1318
runs-on: macOS-latest

.gitignore

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1+
.RData
2+
.Rhistory
3+
.Rproj.user
4+
.gitsum
15
Meta
6+
R/scratch
27
doc
3-
.Rproj.user
4-
.Rhistory
5-
.RData
6-
inst/doc
78
docs
8-
.gitsum
99
gitsum
10-
R/scratch
10+
inst/doc
1111
revdep/
1212
!revdep/*.md
1313
!revdep/problems.md
1414
touchstone/*
15-
!touchstone/script.R
1615
!touchstone/config.json
16+
!touchstone/script.R

.pre-commit-config.yaml

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,22 @@ default_stages: [commit]
44

55
repos:
66
- repo: https://github.com/lorenzwalthert/precommit
7-
rev: v0.1.3.9014
7+
rev: v0.2.2.9006
88
hooks:
99
- id: style-files
1010
args: [--style_pkg=styler, --style_fun=tidyverse_style]
1111
exclude: >
1212
(?x)^(
13-
tests/testthat/.*/.*\.R(md)?|
13+
tests/testthat/.*/.*\.R(md|nw)?|
1414
vignettes/customizing_styler\.Rmd|
1515
tests/testthat/public-api/xyzfile-rnw/random4\.Rnw|
16+
vignettes/detect-alignment\.Rmd|
17+
tests/testmanual/addins/.*invalid.*|
18+
tests/testmanual/addins/r-valid\.R|
1619
)$
1720
- id: roxygenize
21+
additional_dependencies:
22+
- r-lib/pkgapi
1823
- id: use-tidy-description
1924
- id: spell-check
2025
exclude: >
@@ -47,9 +52,11 @@ repos:
4752
exclude: >
4853
(?x)^(
4954
tests/testthat/public-api/xyzaddin/addin_region-.*|
50-
tests/testmanual/addins/r-invalid\.R|
55+
tests/.*invalid.*|
56+
tests/testthat/rmd/no-tidy-out\.Rmd|
5157
tests/testthat/escaping/basic-escape-out\.R|
52-
tests/testthat/indention_operators/base_pipe_and_assignment-.*|
58+
tests/testthat/indention_operators/.*pipe.*|
59+
tests/testthat/line_breaks_and_other/.*pipe.*|
5360
tests/testthat/exception_handling/parser-error.R|
5461
)$
5562
- id: no-browser-statement
@@ -58,25 +65,38 @@ repos:
5865
tests/testthat/public-api/xyzaddin/addin_region-.*|
5966
tests/testmanual/addins/r-invalid\.R|
6067
tests/testthat/escaping/basic-escape-out\.R|
61-
tests/testthat/indention_operators/base_pipe_and_assignment-.*|
68+
tests/testthat/indention_operators/.*pipe.*|
69+
tests/testthat/line_breaks_and_other/.*pipe.*|
6270
tests/testthat/exception_handling/parser-error.R|
6371
)$
6472
- id: deps-in-desc
6573
exclude: >
6674
(?x)^(
6775
touchstone/.*|
68-
tests/testmanual/addins/r-invalid\.R|
76+
tests/testmanual/addins/.*invalid.*|
6977
tests/testthat/escaping/basic-escape-out\.R|
7078
tests/testthat/rnw/011-conditional-eval-out\.Rnw|
7179
tests/testthat/.*\.R(md)?
7280
)$
7381
- repo: https://github.com/pre-commit/pre-commit-hooks
74-
rev: v4.0.1
82+
rev: v4.1.0
7583
hooks:
7684
- id: check-added-large-files
7785
args: ['--maxkb=200']
86+
- id: file-contents-sorter
87+
files: "\\.Rbuildignore$"
7888
- id: end-of-file-fixer
79-
exclude: '\.Rd'
89+
exclude: >
90+
(?x)^(
91+
\.Rd|
92+
tests/testthat/exception_handling/empty_file\.R|
93+
tests/testthat/parse_comments/eol_eof_spaces-.*|
94+
tests/testthat/reference-objects/.*|
95+
)$
96+
- repo: https://github.com/lorenzwalthert/gitignore-tidy
97+
rev: b3eaceb0bf2df137cc80f85b3943b6684f204c48
98+
hooks:
99+
- id: tidy-gitignore
80100
- repo: local
81101
hooks:
82102
- id: forbid-to-commit

0 commit comments

Comments
 (0)