Skip to content
Snippets Groups Projects
Commit df88c4d4 authored by Laura A DeCicco's avatar Laura A DeCicco
Browse files

Unifying argument names.

parent 05be4d0b
No related branches found
No related tags found
1 merge request!7Response to reviewer's comments.
...@@ -10,13 +10,13 @@ ...@@ -10,13 +10,13 @@
#' @export #' @export
#' @examples #' @examples
#' Date <- '1985-01-01' #' Date <- '1985-01-01'
#' dateString <- 'StartDate' #' dateString <- 'startDate'
#' formatCheckDate(Date, dateString, interactive = FALSE) #' formatCheckDate(Date, dateString, interactive = FALSE)
formatCheckDate <- function(Date, dateString,interactive=TRUE){ formatCheckDate <- function(Date, dateString,interactive=TRUE){
if(nzchar(Date)){ if(nzchar(Date)){
if (!dateFormatCheck(Date)){ if (!dateFormatCheck(Date)){
if (interactive){ if (interactive){
cat("Date must be entered in the form YYYY-MM-DD (no quotes), you entered: ", Date, "as the StartDate.\n") cat("Date must be entered in the form YYYY-MM-DD (no quotes), you entered: ", Date, "as the startDate.\n")
cat("Please re-enter ", dateString, ":\n") cat("Please re-enter ", dateString, ":\n")
Date <- readline() Date <- readline()
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment