Skip to content

Commit

Permalink
Uses generic is.infinite that is compatible with previous R versions (
Browse files Browse the repository at this point in the history
#35)

# Pull Request

Closes #34 

### Changes description

* Fix bug reported by @chlebowa as `is.infinite.POSIXlt` is not
available in previous versions of R
  • Loading branch information
averissimo authored Sep 5, 2023
1 parent e3e6eeb commit d694cb3
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:
- ready_for_review
branches:
- main
- training
push:
branches:
- main
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: verdepcheck
Title: Check Package using Various Versions of Dependencies
Version: 0.0.0.9000
Version: 0.0.0.9001
Date: 2023-02-14
Authors@R: c(
person("Pawel Rucki", , , "[email protected]", role = c("aut", "cre")),
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# verdepcheck 0.0.0.9000
# verdepcheck 0.0.0.9001

- Initialize the package.
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ base_pkgs <- function() {
#' get_ppm_snapshot_by_date(Sys.Date() + 10)
get_ppm_snapshot_by_date <- function(date) {
fallback_repo <- file.path(pkgcache::ppm_repo_url(), "latest")
if (is.na(date) || is.infinite.POSIXlt(date)) {
if (is.na(date) || is.infinite(date)) {
return(fallback_repo)
}

Expand Down

0 comments on commit d694cb3

Please sign in to comment.