-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (39 loc) · 1.23 KB
/
R package on Windows - from GitHub.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Install on Windows via GitHub
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
r-version: ['4.3.1']
steps:
- uses: actions/checkout@v3
- name: Set up R ${{ matrix.r-version }}
uses: r-lib/actions/setup-r@f57f1301a053485946083d7a45022b278929a78a
with:
r-version: ${{ matrix.r-version }}
# Additional step if there are any Windows-specific system dependencies
# - name: Install system dependencies
# run: |
# # Commands to install system dependencies
- name: Install dependencies
run: |
install.packages(c("remotes", "rcmdcheck", "devtools"))
remotes::install_deps(dependencies = TRUE)
shell: Rscript {0}
- name: Install package from GitHub
env:
GITHUB_PAT: ${{ secrets.SW_GITHUB_PAT }}
run: |
library(devtools)
install_github("LewisResearchGroup/digestR")
shell: Rscript {0}
- name: Check
run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error")
shell: Rscript {0}