Skip to content

Commit

Permalink
Merge pull request #59 from lindeloev/dev
Browse files Browse the repository at this point in the history
Now with updated GH workflow
  • Loading branch information
lindeloev authored May 3, 2024
2 parents 5b7ef9b + 5aef9cf commit ee964b9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
pull_request:
branches:
- master
workflow_dispatch:

name: R-CMD-check

Expand All @@ -25,9 +26,9 @@ jobs:
#- {os: windows-latest, r: 'oldrel'}
#- {os: ubuntu-16.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
#- {os: ubuntu-18.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest"}
- {os: ubuntu-20.04, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest", http-user-agent: "R/4.0.0 (ubuntu-18.04) R (4.0.0 x86_64-pc-linux-gnu x86_64 linux-gnu) on GitHub Actions" }
- {os: ubuntu-20.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
- {os: ubuntu-18.04, r: 'oldrel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest"}
- {os: ubuntu-latest, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest", http-user-agent: "R/4.0.0 (ubuntu-18.04) R (4.0.0 x86_64-pc-linux-gnu x86_64 linux-gnu) on GitHub Actions" }
- {os: ubuntu-latest, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
- {os: ubuntu-latest, r: 'oldrel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest"}
#- {os: ubuntu-18.04, r: '3.5', rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest"}
#- {os: ubuntu-18.04, r: '3.4', rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest"}
#- {os: ubuntu-18.04, r: '3.3', rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest"}
Expand All @@ -39,13 +40,14 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: r-lib/actions/setup-r@v1
- uses: r-lib/actions/setup-r@v2
id: install-r
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

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

- name: Install pak and query dependencies
run: |
Expand Down
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: job
Title: Run Code as an RStudio Job - Free Your Console
Version: 0.3.0
Date: 2021-06-04
Version: 0.3.1
Date: 2024-05-03
URL: https://lindeloev.github.io/job/
BugReports: https://github.com/lindeloev/job/issues
Authors@R:
Expand All @@ -14,7 +14,7 @@ Description: Call job::job({<code here>}) to run R code as an RStudio job and ke
License: MIT + file LICENSE
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.1.1
RoxygenNote: 7.3.1
Language: en-US
Depends: R (>= 3.5.0)
Imports:
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test_job.R
Original file line number Diff line number Diff line change
Expand Up @@ -389,5 +389,5 @@ if (rstudioapi::isAvailable()) {
rm(list = ls(all.names = TRUE))
rm(list = ls(all.names = TRUE, envir = globalenv()))
} else {
expect_error(job::job({a = 1}), pattern = "You must run this from the RStudio main session.")
expect_error(job::job({a = 1}), "You must run this from the RStudio main session.")
}

0 comments on commit ee964b9

Please sign in to comment.