Skip to content

An app for keeping track of field activity in the Field Observatory project.

License

Unknown, BSD-3-Clause licenses found

Licenses found

Unknown
LICENSE
BSD-3-Clause
LICENSE.md
Notifications You must be signed in to change notification settings

PecanProject/fieldactivity

Repository files navigation

R Shiny app for management data input

R-CMD-check

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.

Installation

You can install the app from GitHub with:

# install.packages("devtools")
devtools::install_github("PecanProject/fieldactivity")

Running the app

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.

Modifying the code

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.

Meta

Links that might interest you:

About

An app for keeping track of field activity in the Field Observatory project.

Resources

License

Unknown, BSD-3-Clause licenses found

Licenses found

Unknown
LICENSE
BSD-3-Clause
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published