@@ -24,11 +24,11 @@ jobs:
2424 config :
2525 - {os: macOS-latest, pandoc: '2.7.3', r: 'release'}
2626 - {os: windows-latest, pandoc: '2.7.3', r: 'release'}
27- - {os: ubuntu-20.04, pandoc: '2.7.3', r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest", http-user-agent: "R/4.0.0 (ubuntu-16 .04) R (4.0.0 x86_64-pc-linux-gnu x86_64 linux-gnu) on GitHub Actions"}
27+ - {os: ubuntu-20.04, pandoc: '2.7.3', r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest", http-user-agent: "R/4.0.0 (ubuntu-20 .04) R (4.0.0 x86_64-pc-linux-gnu x86_64 linux-gnu) on GitHub Actions"}
2828 - {os: ubuntu-20.04, pandoc: '2.7.3', r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest", }
2929 - {os: ubuntu-20.04, pandoc: '2.9.2.1', r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
30- - {os: ubuntu-20.04, pandoc: '2.11.1.1', r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
31- - {os: ubuntu-20.04, pandoc: '2.7.3', r: 'oldrel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
30+ - {os: ubuntu-20.04, pandoc: '2.11.4', r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
31+ - {os: ubuntu-20.04, pandoc: '2.7.3', r: 'oldrel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
3232
3333 env :
3434 R_REMOTES_NO_ERRORS_FROM_WARNINGS : true
@@ -39,55 +39,63 @@ jobs:
3939 - uses : actions/checkout@v2
4040
4141 - uses : r-lib/actions/setup-r@v1
42+ id : install-r
4243 with :
4344 r-version : ${{ matrix.config.r }}
4445 http-user-agent : ${{ matrix.config.http-user-agent }}
4546
47+ - name : change temp dir
48+ if : runner.os == 'Windows'
49+ run : echo "TMPDIR=${{ runner.temp }}" >> $GITHUB_ENV
50+ shell : bash
51+
52+ - name : Add some R options for later steps
53+ run : |
54+ cat("\noptions(tinytex.verbose = TRUE)\n", file = "~/.Rprofile", append = TRUE)
55+ cat(readLines("~/.Rprofile"), sep = "\n")
56+ shell : Rscript {0}
57+
4658 - uses : r-lib/actions/setup-pandoc@v1
4759 with :
4860 pandoc-version : ${{ matrix.config.pandoc }}
4961
50- - name : Pandoc version
51- run : pandoc --version
52-
53- - uses : r-lib/actions/setup-tinytex@5f1c134
54-
55- - name : tlmgr version
56- run : tlmgr --version
62+ - uses : r-lib/actions/setup-tinytex@v1
5763
5864 - name : preinstall some CTAN packages
5965 run: tlmgr install achemso adobemapping ae algorithmicx algorithms ametsoc amscls apacite arphic babel-english babel-french beamer biblatex bookmark caption carlisle changepage charter chemgreek cite cjk cjkpunct cns colortbl courier crop ctablestack ctex datetime dblfloatfix draftwatermark endfloat endnotes enumitem environ epsf epstopdf eso-pic esvect etex-pkg everyhook everypage extsizes fancyhdr fandol floatflt fmtcount fontaxes fonts-tlwg footmisc forarray fp fpl garuda-c90 grfext hyphen-french hyphenat ifmtarg jknapltx kastrup lastpage latex-base-dev lettrine lineno lipsum listings logreq luatexbase luatexja ly1 marginnote marvosym mathpazo mathspec mdframed mhchem microtype minifp mnras morefloats moreverb mptopdf multirow needspace newfloat newtx norasi-c90 oberdiek palatino parskip pdfsync pgf placeins platex platex-tools preprint psfrag psnfss ptex ptex-base ptex-fonts ragged2e rsfs seqsplit setspace sidecap soul soulutf8 stix sttools subfigure svn-prov symbol tabto-ltx tcolorbox tex-gyre textcase titlesec totcount translator trimspaces ttfutils ucs uhc ulem units uplatex upquote uptex uptex-base uptex-fonts varwidth vruler wadalab wrapfig xcjk2uni xecjk xifthen xpinyin xstring xypic zapfchan zhmetrics zhmetrics-uptex zhnumber zref
6066
61- - name : Query dependencies
67+ - name : Install pak and query dependencies
6268 run : |
63- install.packages('remotes')
64- saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
65- writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
69+ install.packages("pak", repos = "https://r-lib.github.io/p/pak/dev/")
70+ saveRDS(pak::pkg_deps_tree("local::.", dependencies = TRUE), ".github/r-depends.rds")
6671 shell : Rscript {0}
6772
6873 - name : Cache R packages
69- if : runner.os != 'Windows'
7074 uses : actions/cache@v2
7175 with :
7276 path : ${{ env.R_LIBS_USER }}
73- key : ${{ runner.os }}-${{ hashFiles('.github/R- version') }}-1-${{ hashFiles('.github/depends.Rds ') }}
74- restore-keys : ${{ runner.os }}-${{ hashFiles('.github/R- version') }}-1-
77+ key : ${{ runner.os }}-${{ steps.install-r.outputs.installed-r- version }}-1-${{ hashFiles('.github/r- depends.rds ') }}
78+ restore-keys : ${{ runner.os }}-${{ steps.install-r.outputs.installed-r- version }}-1-
7579
7680 - name : Install system dependencies
7781 if : runner.os == 'Linux'
7882 run : sudo apt-get install -y ghostscript
7983
84+
8085 - name : Install dependencies
8186 run : |
82- remotes::install_deps(dependencies = TRUE)
83- remotes::install_cran ("rcmdcheck")
87+ pak::local_install_dev_deps(upgrade = TRUE)
88+ pak::pkg_install ("rcmdcheck")
8489 shell : Rscript {0}
8590
8691 - name : Session info
8792 run : |
8893 options(width = 100)
89- pkgs <- installed .packages()[, "Package"]
94+ pkgs <- .packages(TRUE)
9095 sessioninfo::session_info(pkgs, include_base = TRUE)
96+ rmarkdown::find_pandoc()
97+ tinytex::tlmgr("--version")
98+ tinytex::tl_pkgs()
9199 shell : Rscript {0}
92100
93101 - name : Check
0 commit comments