Skip to content

Commit 14d6e6c

Browse files
committed
suppress warnings in converting NA review hours #37
1 parent 7485b53 commit 14d6e6c

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: dashboard
22
Title: What the Package Does (One Line, Title Case)
3-
Version: 0.2.2.039
3+
Version: 0.2.2.040
44
Authors@R:
55
person(given = "First",
66
family = "Last",

R/review-history.R

+6-2
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,12 @@ rev_hours_airtable <- function () {
140140
rev_hours$`reviews`$select_all (fields = fields)
141141
# airtable 'id_no' fields do not all equal actual issue numbers
142142
# (for example, id_no = 217 is for issue #214).
143-
rev_hours$number <- as.integer (gsub ("^.*\\/", "", rev_hours$onboarding_url))
144-
rev_hours$review_hours <- as.numeric (rev_hours$review_hours)
143+
rev_hours$number <- suppressWarnings (
144+
as.integer (gsub ("^.*\\/", "", rev_hours$onboarding_url))
145+
)
146+
rev_hours$review_hours <- suppressWarnings (
147+
as.numeric (rev_hours$review_hours)
148+
)
145149
rev_hours <- rev_hours [which (!is.na (rev_hours$number) & !is.na (rev_hours$review_hours)), ]
146150

147151
rev_hist <- m_review_history (quiet = TRUE)

codemeta.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"name": "dashboard: What the Package Does (One Line, Title Case)",
77
"codeRepository": "https://github.com/ropensci-review-tools/dashboard",
88
"license": "https://spdx.org/licenses/MIT",
9-
"version": "0.2.2.039",
9+
"version": "0.2.2.040",
1010
"programmingLanguage": {
1111
"@type": "ComputerLanguage",
1212
"name": "R",

0 commit comments

Comments
 (0)