tests/testthat/test-date-parsing.R

test_that("date parsing works", {
  furl <- "https://services.arcgis.com/P3ePLMYs2RVChkJx/ArcGIS/rest/services/MTBS_Polygons_v1/FeatureServer/0"
  res <- arc_select(arc_open(furl), n = 5, fields = "StartDate")
  expect_s3_class(res$StartDate, c("POSIXct", "POSIXt"))
})

Try the arcgislayers package in your browser

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

arcgislayers documentation built on May 29, 2024, 10:42 a.m.