Skip to content

Commit

Permalink
Update r-cmd-check.yml
Browse files Browse the repository at this point in the history
rollback to old workflow file version
  • Loading branch information
JuKo007 authored Jun 14, 2024
1 parent 624db3b commit fb366d4
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions .github/workflows/r-cmd-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on: [push, pull_request]
jobs:
check:
runs-on: ${{ matrix.config.os }}
timeout-minutes: 660
strategy:
fail-fast: false
matrix:
Expand All @@ -31,18 +30,10 @@ jobs:
key: ${{ runner.os }}-texlive-${{ hashFiles('**/DESCRIPTION') }}
restore-keys: ${{ runner.os }}-texlive-

- name: Cache R
uses: actions/cache@v4
with:
path: |
${{ runner.tool_cache }}/R
key: ${{ runner.os }}-R-${{ matrix.config.r }}

- name: Set up R
uses: r-lib/actions/setup-r@v2.6.5
with:
r-version: ${{ matrix.config.r }}
continue-on-error: true

- name: Install Linux system dependencies
if: runner.os == 'Linux'
Expand All @@ -55,14 +46,12 @@ jobs:
sudo apt-get install -y libglpk-dev
sudo R CMD javareconf
sudo apt-get install -y texlive-latex-base texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra
- name: Install Windows system dependencies
if: runner.os == 'Windows'
run: |
choco install miktex -y
echo "C:\Program Files\MiKTeX\miktex\bin\x64" | Out-File -Append -FilePath $Env:GITHUB_PATH
& "C:\Program Files\MiKTeX\miktex\bin\x64\initexmf.exe" --update-fndb
- name: Install macOS system dependencies
if: runner.os == 'macOS'
run: |
Expand All @@ -74,16 +63,11 @@ jobs:
sudo /Library/TeX/texbin/tlmgr install inconsolata
# Install recommended fonts, including Helvetica
sudo /Library/TeX/texbin/tlmgr install collection-fontsrecommended
- name: Install rJava and other R dependencies
run: |
Rscript -e "install.packages('rJava')"
Rscript -e "install.packages('remotes')"
Rscript -e "remotes::install_cran(c('stringi', 'qdapRegex', 'readr', 'tokenizers', 'data.table', 'ggplot2', 'anytime', 'mgsub', 'stats', 'qdap', 'ggwordcloud', 'dplyr', 'ragg', 'checkmate', 'visNetwork', 'lubridate', 'methods', 'leaflet'))"
Rscript -e "remotes::install_cran(c('qdapTools', 'gender', 'openNLP', 'RCurl', 'venneuler', 'qdap', 'ggwordcloud', 'ragg', 'ggmap', 'openNLPdata', 'readr', 'tokenizers', 'anytime', 'mgsub', 'checkmate', 'visNetwork', 'lubridate', 'extrafont', 'testthat', 'ragg', 'data.table', 'leaflet'))"
- name: Check
shell: bash
run: |
export _R_CHECK_FORCE_SUGGESTS_=false
R CMD build .
R CMD check *tar.gz --as-cran
run: R CMD build . && R CMD check *tar.gz --as-cran

0 comments on commit fb366d4

Please sign in to comment.