Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8131930

Browse files
authored
Update the R CMD check GitHub Action to a modern version. (#27)
Use the check-standard template to check a little more broadly.
1 parent9d95620 commit8131930

File tree

3 files changed

+33
-21
lines changed

3 files changed

+33
-21
lines changed

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

Lines changed: 31 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,52 @@
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
push:
55
branches:[main, master]
66
pull_request:
77
branches:[main, master]
88

9-
name:R-CMD-check
9+
name:R-CMD-check.yaml
10+
11+
permissions:read-all
1012

1113
jobs:
1214
R-CMD-check:
13-
runs-on:ubuntu-latest
15+
runs-on:${{ matrix.config.os }}
16+
17+
name:${{ matrix.config.os }} (${{ matrix.config.r }})
18+
19+
strategy:
20+
fail-fast:false
21+
matrix:
22+
config:
23+
-{os: macos-latest, r: 'release'}
24+
-{os: windows-latest, r: 'release'}
25+
-{os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
26+
-{os: ubuntu-latest, r: 'release'}
27+
-{os: ubuntu-latest, r: 'oldrel-1'}
28+
1429
env:
1530
GITHUB_PAT:${{ secrets.GITHUB_TOKEN }}
1631
R_KEEP_PKG_SOURCE:yes
32+
1733
steps:
18-
-uses:actions/checkout@v2
34+
-uses:actions/checkout@v4
35+
36+
-uses:r-lib/actions/setup-pandoc@v2
1937

20-
-uses:r-lib/actions/setup-r@v1
38+
-uses:r-lib/actions/setup-r@v2
2139
with:
40+
r-version:${{ matrix.config.r }}
41+
http-user-agent:${{ matrix.config.http-user-agent }}
2242
use-public-rspm:true
2343

24-
-uses:r-lib/actions/setup-r-dependencies@v1
44+
-uses:r-lib/actions/setup-r-dependencies@v2
2545
with:
26-
extra-packages:rcmdcheck
27-
28-
-uses:r-lib/actions/check-r-package@v1
29-
30-
-name:Show testthat output
31-
if:always()
32-
run:find check -name 'testthat.Rout*' -exec cat '{}' \; || true
33-
shell:bash
46+
extra-packages:any::rcmdcheck
47+
needs:check
3448

35-
-name:Upload check results
36-
if:failure()
37-
uses:actions/upload-artifact@main
49+
-uses:r-lib/actions/check-r-package@v2
3850
with:
39-
name:${{ runner.os }}-r${{ matrix.config.r }}-results
40-
path:check
51+
upload-snapshots:true
52+
build_args:'c("--no-manual","--compact-vignettes=gs+qpdf")'

‎README.Rmd‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ library(log4r)
1919

2020
<!-- badges: start-->
2121
[![CRAN status](https://www.r-pkg.org/badges/version/log4r)](https://cran.r-project.org/package=log4r)
22-
[![R-CMD-check](https://github.com/johnmyleswhite/log4r/workflows/R-CMD-check/badge.svg)](https://github.com/johnmyleswhite/log4r/actions)
22+
[![R-CMD-check](https://github.com/johnmyleswhite/log4r/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/johnmyleswhite/log4r/actions/workflows/R-CMD-check.yaml)
2323
<!-- badges: end-->
2424

2525
**log4r** is a fast, lightweight, object-oriented approach to logging in R based

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
[![CRAN
99
status](https://www.r-pkg.org/badges/version/log4r)](https://cran.r-project.org/package=log4r)
10-
[![R-CMD-check](https://github.com/johnmyleswhite/log4r/workflows/R-CMD-check/badge.svg)](https://github.com/johnmyleswhite/log4r/actions)
10+
[![R-CMD-check](https://github.com/johnmyleswhite/log4r/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/johnmyleswhite/log4r/actions/workflows/R-CMD-check.yaml)
1111
<!-- badges: end-->
1212

1313
**log4r** is a fast, lightweight, object-oriented approach to logging in

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp