Skip to content

Commit

Permalink
Merge pull request #266 from luukvdmeer/fixSpatstat
Browse files Browse the repository at this point in the history
Fix spatstat related code
  • Loading branch information
luukvdmeer authored Apr 9, 2024
2 parents fe5177f + a8d86cb commit 73bfcc7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
R: [ 'release', 'devel' ]
R: [ 'release' ]
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
Expand All @@ -23,11 +23,10 @@ jobs:
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.R }}
use-public-rspm: false
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
cache-version: 2
extra-packages: rcmdcheck

- uses: r-lib/actions/check-r-package@v2
Expand Down
2 changes: 1 addition & 1 deletion R/spatstat.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ check_spatstat = function(pkg) {
)
} else {
spst_ver = try(packageVersion("spatstat"), silent = TRUE)
if (!inherits(spst_ver, "try-error") && spst_ver < 2.0-0) {
if (!inherits(spst_ver, "try-error") && spst_ver < "2.0-0") {
stop(
"You have an old version of spatstat which is incompatible with ",
pkg,
Expand Down
2 changes: 1 addition & 1 deletion man/as.linnet.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 73bfcc7

Please sign in to comment.