Skip to content

Commit

Permalink
tryCatch call to available.package to avoid errors on github runners
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Aug 27, 2024
1 parent e063319 commit b4219af
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: pkgcheck
Title: rOpenSci Package Checks
Version: 0.1.2.056
Version: 0.1.2.057
Authors@R: c(
person("Mark", "Padgham", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0003-2172-5265")),
Expand Down
5 changes: 3 additions & 2 deletions R/check-on-cran.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ pkgchk_on_cran <- function (checks) {
# Needed for GitHub runners, because avail.pkgs fails with no mirror set
options (repos = c (CRAN = "https://cloud.r-project.org"))
}
ap <- data.frame (utils::available.packages (),
stringsAsFactors = FALSE
ap <- tryCatch (
data.frame (utils::available.packages (), stringsAsFactors = FALSE),
error = function (e) NULL
)
options (op)
res <- pkg %in% ap$Package
Expand Down
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"codeRepository": "https://github.com/ropensci-review-tools/pkgcheck",
"issueTracker": "https://github.com/ropensci-review-tools/pkgcheck/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.1.2.056",
"version": "0.1.2.057",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down

0 comments on commit b4219af

Please sign in to comment.