Skip to content

dainst/fieldtrip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Let your excavation data take a field trip!

fieldtrip is an R Client for the Field Desktop API (see API in the Field Desktop User Manual).

Development Status

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.

Dependencies

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.

Installation

You can install the current version of fieldtrip from GitHub using remotes:

remotes::install_github("dainst/fieldtrip", build_vignettes = TRUE)

Basic Workflow

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)

About

exchange data between R and Field Desktop

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors

Languages