Skip to content

Commit

Permalink
BUGFIX: was using is.na instead of is.null in a test
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancoisGuillem committed Jan 19, 2017
1 parent b499b71 commit 85b5ef9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/controlsUtils.R
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ initValueIsValid <- function(x) {
if (length(params$value) == 0) return(FALSE)
if (is.na(params$value) ) return(TRUE)
if (!is.numeric(params$value)) return(FALSE)
if (!is.na(params$min) && params$value < params$min) return(FALSE)
if (!is.na(params$max) && params$value > params$max) return(FALSE)
if (!is.null(params$min) && params$value < params$min) return(FALSE)
if (!is.null(params$max) && params$value > params$max) return(FALSE)
return(TRUE)
}

Expand Down

0 comments on commit 85b5ef9

Please sign in to comment.