Nothing
context("report_env")
test_that("test creating an instance of report_env", {
skip_on_cran()
stacomi(database_expected = TRUE)
env_set_test_stacomi()
r_env <- new("report_env")
r_env <- choice_c(
r_env,
stationMesure = c("temp_gabion", "coef_maree"),
datedebut = "2008-01-01",
datefin = "2008-12-31",
silent = TRUE
)
r_env <- connect(r_env, silent = TRUE)
expect_true(nrow(r_env@data) > 0,
"The is a problem when loading data in the data slot")
rm(list = ls(envir = envir_stacomi), envir = envir_stacomi)
})
test_that("test plot method", {
skip_on_cran()
stacomi(database_expected = TRUE)
env_set_test_stacomi()
r_env <- new("report_env")
r_env <- choice_c(
r_env,
stationMesure = c("temp_gabion", "coef_maree"),
datedebut = "2008-01-01",
datefin = "2008-12-31",
silent = TRUE
)
r_env <- connect(r_env, silent = TRUE)
expect_error(suppressWarnings(r_env <- plot(r_env)), NA)
rm(list = ls(envir = envir_stacomi), envir = envir_stacomi)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.