Skip to content

Commit 1972769

Browse files
authored
Merge pull request #6 from asgr/copilot/create-r-check-ci
Add R-CMD-check GitHub Actions CI workflow
2 parents 3552746 + a2e442f commit 1972769

4 files changed

Lines changed: 81 additions & 6 deletions

File tree

.github/workflows/main.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
on:
4+
push:
5+
pull_request:
6+
branches: [main, master]
7+
8+
name: R-CMD-check
9+
10+
jobs:
11+
R-CMD-check:
12+
runs-on: ${{ matrix.config.os }}
13+
14+
permissions:
15+
contents: read
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: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
25+
- {os: ubuntu-latest, r: 'release'}
26+
- {os: ubuntu-latest, r: 'oldrel-1'}
27+
28+
env:
29+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
30+
R_KEEP_PKG_SOURCE: yes
31+
32+
steps:
33+
- uses: actions/checkout@v2
34+
35+
- name: Install X11 on macOS
36+
if: runner.os == 'macOS'
37+
run: |
38+
brew update
39+
brew install --cask xquartz
40+
41+
- uses: r-lib/actions/setup-pandoc@v2
42+
43+
- uses: r-lib/actions/setup-r@v2
44+
with:
45+
r-version: ${{ matrix.config.r }}
46+
http-user-agent: ${{ matrix.config.http-user-agent }}
47+
use-public-rspm: true
48+
49+
- uses: r-lib/actions/setup-r-dependencies@v2
50+
with:
51+
dependencies: '"hard"'
52+
extra-packages: any::rcmdcheck,
53+
github::asgr/Rwcs@master,
54+
github::asgr/Rfits@master,
55+
github::ICRAR/ProFit@master,
56+
github::asgr/ProFound@master,
57+
github::asgr/ProSpect@master,
58+
github::asgr/ProSpectData@main,
59+
github::asgr/cmaeshpc@master,
60+
github::asgr/Highlander@master,
61+
github::asgr/hyper.fit@master,
62+
github::asgr/ParmOff@main,
63+
any::knitr,
64+
any::rmarkdown,
65+
any::imager
66+
67+
- uses: r-lib/actions/check-r-package@v2
68+
with:
69+
args: 'c("--no-manual", "--as-cran")'
70+
error-on: '"error"'
71+
upload-snapshots: true

vignettes/ProFuse-AGN-PSF-Fit.Rmd

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,13 @@ Set global evaluate:
2525
evalglobal = FALSE
2626
```
2727

28-
Load the required packages (**ProTools** basically load all of my packages in one go):
28+
Load the required packages:
2929

3030
```{r}
31+
library(celestial)
3132
library(Rfits)
33+
library(ProSpect)
3234
library(ProFuse)
33-
library(ProTools)
3435
library(ParmOff)
3536
```
3637

vignettes/ProFuse-MF2F-Setups.Rmd

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,13 @@ Set global evaluate:
1919
evalglobal = FALSE
2020
```
2121

22-
Load the required packages (**ProTools** basically load all of my packages in one go):
22+
Load the required packages:
2323

2424
```{r}
25+
library(celestial)
26+
library(Rfits)
27+
library(ProSpect)
2528
library(ProFuse)
26-
library(ProTools)
2729
library(ParmOff)
2830
```
2931

vignettes/ProFuse-Simple-Fit.Rmd

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,13 @@ Set global evaluate:
2525
evalglobal = FALSE
2626
```
2727

28-
Load the required packages (**ProTools** basically load all of my packages in one go):
28+
Load the required packages:
2929

3030
```{r}
31+
library(celestial)
3132
library(Rfits)
33+
library(ProSpect)
3234
library(ProFuse)
33-
library(ProTools)
3435
library(ParmOff)
3536
```
3637

0 commit comments

Comments
 (0)