-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integers parsed as date times #211
Comments
Can you please try installing arcpbf from r-universe? install.packages("arcpbf", repos = c("https://r-arcgis.r-universe.dev", "https://cloud.r-project.org")) then restart R and try loading your feature service? I believe I fixed this bug previously this week. |
Hi there, thanks for the quick response! Install via RemotesOn installing dev version from remotes:: remotes::install_github("r-arcgis/arcgislayers", force = TRUE)
remotes::install_github("r-arcgis/arcpbf", force = TRUE)
# restart R
devtools::package_info(c("arcgislayers", "arcpbf")) |>
dplyr::filter(stringr::str_starts(package, "arc")) |>
dplyr::select(package, "ondiskversion", date, source) |>
data.table::as.data.table() |>
kableExtra::kable()
When trying to
Install via
|
package | ondiskversion | date | source |
---|---|---|---|
arcgislayers | 0.3.0.9000 | 2024-07-20 | https://r-arcgis.r-universe.dev (R 4.4.1) |
arcgisutils | 0.3.0 | 2024-05-09 | CRAN (R 4.4.1) |
arcpbf | 0.1.3.9000 | 2024-07-20 | https://r-arcgis.r-universe.dev (R 4.4.1) |
I get the same
Error in `arc_select()`:
! `as.integer(page_size)` must be a whole number or `NULL`, not an empty integer vector.
Install via CRAN
On installing from CRAN:
install.packages("arcpbf", repos = c("https://cloud.r-project.org"))
install.packages("arcgislayers", repos = c("https://cloud.r-project.org"))
# restart R
package | ondiskversion | date | source |
---|---|---|---|
arcgislayers | 0.3.0 | 2024-07-05 | CRAN (R 4.4.1) |
arcgisutils | 0.3.0 | 2024-05-09 | CRAN (R 4.4.1) |
arcpbf | 0.1.3 | 2024-07-10 | CRAN (R 4.4.1) |
arcgislayers::arc_read()
works but give the weird 1969-12-31 17:00:INTEGER
thing.
Finally, Install dev arcpbf
+ CRAN arcgislayers
On installing dev version of arcpbf
w/ CRAN of arcgislayers
:
package | ondiskversion | date | source |
---|---|---|---|
arcgislayers | 0.3.0 | 2024-07-05 | CRAN (R 4.4.1) |
arcgisutils | 0.3.0 | 2024-05-09 | CRAN (R 4.4.1) |
arcpbf | 0.1.3.9000 | 2024-07-20 | https://r-arcgis.r-universe.dev (R 4.4.1) |
It parses as expected.
#212 specifically regards the
|
Describe the bug
From commit 553e80b onward, integer fields seem to be parsed as date times for some reason. The previous commit (c988b92) parses normally. However, from 553e80b onward, when I hit a integer field it reads as
1969-12-31 17:00:INTEGER
.I.E., I have a temperature field where an observer put in
34
, this now reads as1969-12-31 17:00:34
. This is the same whether usingargislayers::arc_open()
+arcgislayers::arc_select()
or justarcgislayers::arc_read()
.To Reproduce
Unfortunately, the feature service in question is sensitive and cannot be shared but here is my general workflow:
Additional context
Not sure if it would matter but my feature service is from a Survey123 application where the offending fields are specified as:
and so forth in the xlsform.
Additionally, I don't believe I have any integers >= 100 which may change how it would be parsed?
The text was updated successfully, but these errors were encountered: