Skip to content

Commit 03c0158

Browse files
authored
Update r.yml
1 parent 65a9576 commit 03c0158

File tree

1 file changed

+28
-16
lines changed

1 file changed

+28
-16
lines changed

.github/workflows/r.yml

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
#
6+
# See https://github.com/r-lib/actions/tree/master/examples#readme for
7+
# additional example workflows available for the R community.
18
name: R
2-
39
on:
410
push:
511
branches: [ master ]
612
pull_request:
713
branches: [ master ]
8-
914
jobs:
1015
build:
1116
runs-on: macos-latest
@@ -14,34 +19,41 @@ jobs:
1419
r-version: ['4.2']
1520
steps:
1621
- uses: actions/checkout@v2
17-
1822
- name: Set up R ${{ matrix.r-version }}
1923
uses: r-lib/actions/setup-r@f57f1301a053485946083d7a45022b278929a78a
2024
with:
2125
r-version: ${{ matrix.r-version }}
22-
23-
# Install TinyTeX to compile PDF manuals
24-
- name: Install TinyTeX
25-
uses: r-lib/actions/setup-tinytex@v2
26-
27-
- name: Install additional LaTeX packages
26+
27+
# Install tinytex package first
28+
- name: Install tinytex package
29+
run: |
30+
install.packages("tinytex")
31+
shell: Rscript {0}
32+
33+
# Then install TinyTeX distribution
34+
- name: Install TinyTeX distribution
35+
run: |
36+
tinytex::install_tinytex()
37+
shell: Rscript {0}
38+
39+
# Then install LaTeX packages
40+
- name: Install LaTeX packages
2841
run: |
2942
tinytex::tlmgr_install(c("pdfcrop", "inconsolata", "texinfo", "framed"))
3043
shell: Rscript {0}
31-
32-
# Install httr2 explicitly from CRAN
33-
- name: Install httr2
44+
45+
# Install httr2 explicitly
46+
- name: Install httr2 explicitly
3447
run: |
3548
install.packages("httr2", repos = "https://cloud.r-project.org")
3649
shell: Rscript {0}
37-
50+
3851
- name: Install dependencies
3952
run: |
4053
install.packages(c("remotes", "rcmdcheck"))
4154
remotes::install_deps(dependencies = TRUE)
4255
shell: Rscript {0}
43-
44-
- name: Check package
56+
57+
- name: Check
4558
run: rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "error")
4659
shell: Rscript {0}
47-

0 commit comments

Comments
 (0)