This document contains the outline of a workshop where within about one hour,
we’ll build an electronic data capture pipeline from
form design to data analysis and dissemination using ODK and ruODK
.
Before we start, read the brief
overview of electronic data capture
using ODK, and how ruODK
fits into that picture.
There are many ways to create a valid XForm. The friendliest way is to use ODK Build, a drag-and-drop online form designer.
Reference: ODK Build docs
Dirty tricks:
Fail-safe: Use any of the ruODK example forms.
The Xform is distributed via ODK Central.
Reference: ODK Central docs
Fail-safe: The presenter can show the QR code for an example project on a ODK Central server.
Data collection happens on an Android device using ODK Collect.
Reference: ODK Collect docs
Data can now be captured and sent via WiFi or cellular network (see ODK Collect settings). (10 min)
Fail-safe: The presenter can bring a few pre-configured Android devices. The example forms already contain collected data.
Run through the steps shown in the first part of the README:
ruODK
. (10 min pre workshop)ruODK
through .Renviron (ODK Central un, pw, default
project/form). (5 min)ruODK
workshop in a hosted, disposable RStudio
instance, hit the “binder” button.ruODK
in your own environment, run this (preferably
ahead of the workshop to allow time for troubleshooting):You can install the latest release of ruODK
from the rOpenSci
R-Universe:
# Enable the rOpenSci universe
options(repos = c(ropensci = 'https://ropensci.r-universe.dev',
CRAN = 'https://cloud.r-project.org'))
install.packages('ruODK')
See the ruODK README for other installation options.
Add your ODK Central credentials to .Renviron
via
usethis::edit_r_environ()
(with your own un
and pw
):
ODKC_URL="https://myodkcentral.org"
ODKC_PID=14
ODKC_FID="my-form-id"
ODKC_UN="xxx"
ODKC_PW="xxx"
Start with a colour-by-numbers workflow example: If using RStudio,
create a new RMarkdown workbook “from template” and select ruODK
’s
template “ODK Central via OData”, or run the next chunk with a file name
of your choice:
rmarkdown::draft("my_example.Rmd", "odata", package="ruODK")
Follow the instructions in the workbook to explore the data. Now u r ODK!
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.