tests/testthat/test-styles.R

test_that("get_style and list_styles work", {
  skip_on_cran()

  expect_type(
    get_style(
      style_id = "satellite-v9",
      username = "mapbox"
    ),
    "list"
  )

  expect_error(
    list_styles(username = "mapbox")
  )

})

Try the mapboxapi package in your browser

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

mapboxapi documentation built on Sept. 21, 2024, 1:06 a.m.