Skip to content

Commit

Permalink
:shipit: 💃 add type=logical
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Patrick Kyle committed Nov 1, 2019
1 parent 51a711a commit 6b81790
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/dash.R
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ Dash <- R6::R6Class(
return(default)
if (type %in% c("double", "integer") && value < 0)
return(default)
if (toupper(value) %in% c("TRUE", "FALSE"))
if (toupper(value) %in% c("TRUE", "FALSE") && type == "logical")
value <- as.logical(toupper(value))
if (type == "integer")
value <- as.integer(value)
Expand Down

0 comments on commit 6b81790

Please sign in to comment.