Skip to content

Commit

Permalink
fix bug due to NA Date
Browse files Browse the repository at this point in the history
  • Loading branch information
bthieurmel committed Nov 27, 2017
1 parent bf53aa5 commit 950b014
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/inputs.R
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@ mwDateRange <- function(value = c(Sys.Date(), Sys.Date() + 1), label = NULL, ...
if (length(x) == 0) x <- c(Sys.Date(), Sys.Date())
else if (length(x) == 1) x <- c(x, Sys.Date())
x <- as.Date(x)
x[is.na(x)] <- Sys.Date()
if (!is.null(params$min)) {
params$min <- as.Date(params$min)
if(x[1] == Sys.Date()){
Expand Down

0 comments on commit 950b014

Please sign in to comment.