tests/testthat/test_G20.R

context("G20 data frame")

test_that("G20 data frame is present", {
  expect_equal(
    names(G20),
    c(
      "region",
      "country",
      "gdp_mil_usd",
      "hdi",
      "econ_classification",
      "hemisphere"
    )
  )
  expect_equal(nrow(G20), 20)
})

Try the treemapify package in your browser

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

treemapify documentation built on Sept. 30, 2023, 9:07 a.m.