Skip to content

Commit 90ce445

Browse files
committed
fix: entry points spec incase all sources are NA
1 parent ddd4ad1 commit 90ce445

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Type: Package
22
Package: riskintrodata
33
Title: Data Tools for Managing Animal Disease Introduction Risk
4-
Version: 0.0.13
4+
Version: 0.0.14
55
Authors@R: c(
66
person("Eli", "Daniels", , "eli.daniels@ardata.fr", role = c("aut", "cre")),
77
person("David", "Gohel", , "david.gohel@ardata.fr", role = "aut"),

R/spec-entry_points.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"sources" = list(
5959
required = FALSE,
6060
validation_func = list(
61-
"should be character" = is.character
61+
"should be character" = function(x) is.character(x) || all(is.na(x))
6262
)
6363
)
6464
)

0 commit comments

Comments
 (0)