Skip to content

Commit

Permalink
Doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
jbedia committed Jul 19, 2018
1 parent 656c4df commit b7087de
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -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 <http://meteo.unican.es> [cph]",
"Maria Dolores Frías <[email protected]> [aut, cre]",
Expand Down
2 changes: 1 addition & 1 deletion NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion R/climagram.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b7087de

Please sign in to comment.