Skip to content

Commit

Permalink
Update misc_and_utility.R
Browse files Browse the repository at this point in the history
  • Loading branch information
tbates committed Jan 18, 2025
1 parent 627e41f commit 7dae350
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/misc_and_utility.R
Original file line number Diff line number Diff line change
Expand Up @@ -4219,7 +4219,7 @@ umx_time <- function(x = NA, formatStr = c("simple", "std", "custom %H %M %OS3")
umx_check(x %in% c('start', 'stop', "lap", "now"), "stop", "Valid time strings are 'start', 'stop', 'lap', (or a model or list of models). Leave blank for 'now'")
}else if(is.na(x)){
cat("Current time is ", format(Sys.time(), "%X, %a %d %b %Y"), "\nTry me with a list of models, or 'start', 'stop'")
invisible()
return(invisible(Sys.time()))
}else{
stop("You must set the first parameter to 'start', 'stop', 'now', a model, or a list of models.\nYou offered up a", class(x))
}
Expand Down

0 comments on commit 7dae350

Please sign in to comment.