An app for keeping track of field activity in the Field Observatory project. Built using Shiny and Golem, the application allows farmers to enter information about common farming events like tillage, sowing and harvest. These event data are stored in .json files, which mostly follow the ICASA standards for agricultural data.
You can install the app from GitHub with:
# install.packages("devtools")
devtools::install_github("Ottis1/fieldactivity")
To run the app, call run_app
with the following arguments to define
the json file directory, the user database and the passphrase to the
user
database:
options(golem.app.prod = TRUE) # run in production mode to enable user authentication
fieldactivity::run_app(json_file_path = "~/my_json_file_folder",
user_db_path = "~/my_user_database.sqlite",
user_db_passphrase = "password123")
Check out the documentation of
Shinymanager (the user
authentication system used in the app) to find out how to create the
user database. You can also use the supplied R script in
dev/create_user_db.R
for this purpose.
To modify the code, clone the repository and set the working directory
in R to the package folder (or open the RStudio project file
fieldactivity.Rproj
). You should now be able to run the app by running
golem::run_dev()
Modify dev/run_dev.R
if necessary, this is the file which
golem::run_dev()
runs.