Skip to content

Commit

Permalink
ci: 🐛 rcmdcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
munoztd0 committed Jul 28, 2023
1 parent 923052f commit c5081d4
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,17 @@ jobs:

- uses: r-lib/actions/setup-pandoc@v2


- name: Install dependencies
run: |
r = getOption("repos")
r["CRAN"] = "http://cran.us.r-project.org"
options(repos = r)
install.packages("remotes", repos = "http://cran.us.r-project.org")
remotes::install_deps(dependencies = TRUE)
remotes::install_cran("rcmdcheck")
shell: Rscript {0}

- name: Cache R packages
if: runner.os != 'Windows'
uses: actions/cache@v3
Expand All @@ -55,15 +66,7 @@ jobs:
eval sudo $cmd
done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "20.04"))')
- name: Install dependencies
run: |
r = getOption("repos")
r["CRAN"] = "http://cran.us.r-project.org"
options(repos = r)
install.packages("remotes", repos = "http://cran.us.r-project.org")
remotes::install_deps(dependencies = TRUE)
remotes::install_cran("rcmdcheck")
shell: Rscript {0}
- name: Check
env:
Expand Down

0 comments on commit c5081d4

Please sign in to comment.