Introducing rockx: Early Release for Direct ODK-X Data Access in R

Hi everyone,

I’m excited to announce the early release of rockx—a new R package that makes fetching data from an ODK-X Sync Endpoint into RStudio/Positron a breeze.

install.packages("rockx")
library(rockx)
rockx::set_username_and_password("username","password","sync-endpoint-url")

# Get a list of available tables on the ODK-X Sync Endpoint
my_tables <- rockx::get_tables()

 # Get a strongly typed tibble with all the rows of a table, e.g. 'registration_form'
table_data <- rockx::get_all_rows("registration_form")

# If your forms contains attachments (e.g. photos) you can download them like this
meta_data <- rockx::get_table_metadata("registration_form")
rockx::download_attachments(table_data, meta_data, "data")

This initial version simplifies data retrieval, and we’re eager to hear your feedback to help improve the package. Check it out, give it a try, and let me know what you think!

Cheers,
//emil

2 Likes