We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4088ee6 commit 0d15624Copy full SHA for 0d15624
R-packages/covidcast/tests/testthat/test-plot.R
@@ -128,9 +128,12 @@ test_that("test incomplete metadata", {
128
issue = as.Date("2020-02-01"),
129
stderr = 0.5),
130
class = c("covidcast_signal", "data.frame"),
131
- metadata = list(geo_type = "state")
+ metadata = list(geo_type = "state", mean_value = 0, stdev_value = 1)
132
)
133
134
+ expect_warning(plot(fake_data), NA)
135
+ attributes(fake_data)$metadata = list(geo_type = "state", mean_value = 0)
136
+
137
expect_warning(plot(fake_data),
138
"Metadata for signal mean and standard deviation not",
139
"available; defaulting to observed mean and standard",
0 commit comments