Skip to content

Commit bc61b8e

Browse files
committed
Ensure wind_elevation is a numeric value
1 parent bfc5302 commit bc61b8e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/get_power.R

+2-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,8 @@ get_power <- function(community = c("ag", "re", "sb"),
267267
)
268268
}
269269

270-
if (!is.null(wind_elevation) && wind_elevation %notin% 10:300) {
270+
if (!is.null(wind_elevation) && !is.numeric(wind_elevation) &&
271+
wind_elevation %notin% 10:300) {
271272
cli::cli_abort(
272273
c(x = "{.arg wind_elevation} values in metres are required to be between
273274
10m and 300m inclusive."),

0 commit comments

Comments
 (0)