tests/testthat/test-json-na.R

test_that("multiplication works", {
  correct <- r"([{"attributes":{"OBJECTID":100.0,"RelativeDepthTypeCode":null}}])"

  created <- as_esri_features(
    data.frame(
      OBJECTID = 100,
      RelativeDepthTypeCode = NA_character_
    )
  )
  expect_identical(created, correct)
})

Try the arcgisutils package in your browser

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

arcgisutils documentation built on July 11, 2026, 1:07 a.m.