tests/testthat/test-germany_1995.R

hh_consumption <- germany_1995 %>%
  dplyr::filter ( prod_na == "P1") %>%
  dplyr::filter ( iotables_col  == "final_consumption_households" ) %>%
  dplyr::select ( values ) %>%
  unlist () %>% as.numeric ()

test_that("The household consumption value of the Eurostat Manual example dataset is correctly returned.", {
  expect_equal(hh_consumption, 1001060)
})

Try the iotables package in your browser

Any scripts or data that you put into this service are public.

iotables documentation built on Sept. 24, 2022, 5:05 p.m.