Skip to content

Commit ea40b4d

Browse files
committed
adjust some messages
1 parent 3d8dad0 commit ea40b4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/realtime_plot.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ plot.realtime <- function(x = NULL, Parameter = c("Flow", "Level"), ...) {
3030
Parameter <- match.arg(Parameter)
3131

3232
if (length(unique(x$STATION_NUMBER)) > 1L) {
33-
stop("realtime plot methods only work with objects that contain one station", call. = FALSE)
33+
stop("realtime plots only work with objects that contain one station", call. = FALSE)
3434
}
3535

36-
if (is.null(x)) stop("Station(s) not present in the datamart")
36+
if (is.null(x)) stop("Station not present in the datamart")
3737

3838
## Catch mis labelled parameter
3939
if (Parameter == "Level" && ((nrow(x[x$Parameter == "Level", ]) == 0) | all(is.na(x[x$Parameter == "Level", ]$Value)))) {

0 commit comments

Comments
 (0)