tests/testthat/test-geom_tll.R

context("geom-tll")


test_that("Is ggplot null",
          {
            df = eq_ReadQuake()

            df_tidy = eq_GenLocationName(eq_CleanData(df))

            gg = NULL

            gg = df_tidy %>%
              dplyr::filter_at(c("COUNTRY"),dplyr::all_vars(.%in% c("TURKEY","ITALY"))) %>%
              dplyr::filter(.data$DATE > lubridate::origin) %>%
              ggplot2::ggplot(ggplot2::aes(x = DATE, y = COUNTRY, fill = DEATHS, size = MAGNITUDE)) +
              geom_TimeLine()+
              geom_TimeLineLable(ggplot2::aes(label=LOCATION),check.overlap=T)


            expect_failure(expect_null(gg))

          })
Polkas/EarthQuakeCapstone documentation built on May 29, 2019, 2:49 p.m.