diff --git a/DESCRIPTION b/DESCRIPTION index 7ba3164..e60b1fb 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -29,7 +29,7 @@ Suggests: Type: Package Title: Visualizing climate4R data and Communicating Uncertainty in Seasonal Climate Prediction Version: 1.2.1 -Date: 2018-07-17 +Date: 2018-07-19 Authors@R: as.person(c( "Santander Meteorology Group [cph]", "Maria Dolores Frías [aut, cre]", diff --git a/NEWS b/NEWS index 40e4050..cd5c5a6 100644 --- a/NEWS +++ b/NEWS @@ -7,7 +7,7 @@ * Minor bug fix in set.min argument value check in `spatialPlot` * Other minor changes and documentation updates -## v1.2.1 (in devel) +## v1.2.1 (19 Jul 2018) * Set `clim.time.frame` default value in climagrams to `"monthly"` * Update climagram vignette * Other minor changes and documentation updates diff --git a/R/climagram.R b/R/climagram.R index 6239267..ceb6c38 100644 --- a/R/climagram.R +++ b/R/climagram.R @@ -158,7 +158,7 @@ climagram <- function(hindcast, stop("Monthly data is required for climagram construction (use 'aggregateGrid' for submonthly data)") } if (is.null(forecast)) { - if (is.null(year.target)) stop("Either a year.target from the hindcast or a forecast dataset must be indicated", + if (is.null(year.target)) stop("Either a \'year.target\' from the hindcast or a forecast dataset must be indicated", call. = FALSE) yrs <- unique(getYearsAsINDEX(hindcast)) if (!year.target %in% yrs) stop("Target year outside temporal hindcast range", call. = FALSE)