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

Lines changed: 2 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy