fieldtrip is an R Client for the Field Desktop API (see API in the Field Desktop User Manual).
Warning
This package is under development and not ready to be released. Use at your own risk. Package behaviour may not be consistent in a future release.
fieldtrip needs an iDAI.field / Field Desktop-Client to be open on the same computer to work. Other than that, the package depends on crul and jsonlite, both available on CRAN and automatically installed as dependencies. sf is recommended for processing Geodata after import, but only used if already installed. Consider installing it manually.
You can install the current version of fieldtrip from GitHub using remotes:
remotes::install_github("dainst/fieldtrip", build_vignettes = TRUE)library(fieldtrip)
coins <- get_csv(category = "Coin")
# Enter your synchronization password as prompted, see Tools > Settings in Field Desktop.
# The password is stored for the rest of the session.
# Update an attribute:
coins$processor <- "John Doe"
# Send the updated data to Field Desktop
post_csv(coins, category = "Coin", merge = TRUE)
# Get all geodata:
geodata <- get_geojson()
# If `sf` is available:
plot(geodata)
# Or only from one operation:
geodata <- get_geojson(context = "T1")
# If `sf` is available:
plot(geodata)