tests/testthat/test-json-conversions.R

test_that("as_esri_features() respects integers", {
  x <- data.frame(
    objectid = 1:5,
    value = sample(c("y", "n"), 5, TRUE)
  )

  y <- as_features(x)
  expect_false(any(grepl(".0", y)))
})

Try the arcgisutils package in your browser

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

arcgisutils documentation built on April 12, 2025, 1:16 a.m.