3 R Technicians
3.1 Updating dynamic content
TODO:
- Interactions: re-knit env.Rmd.
3.1.1 Shiny App Content Updates
To render changes made to content in a Shiny app, navigate to the folder that contains the application files to run the app. Shiny apps are served from a standard folder where they are symbolically linked to source files. These folders contain the global.R, ui.R, server.R scripts that run the app.
- global.R: functions used in ui.R and server.R can be defined here, sourced here from other files or in loaded libraries
- ui.R: defines the user interface, or display, of the contents in the shiny app; this is navigable through the bookmarks in the lower left menu of the Code panel in RStudio
- server.R: back-end server functions to populate the user interface; this is also navigable through the bookmarks in the lower left menu of the Code panel in RStudio
3.1.2 Projects Page
The projects page is accessed from the marineenergy.app Reporting Tool. Projects shown on the map and timeline diagram are updated periodically based on input from stakeholders. The content is updated through a series of steps as outlined below.
- Enter new project information into: data | marineenergy.app - Google Sheet
- If a new project permit type is needed, add this to the list presented on the project_permit_types worksheet
- Use RStudio to open the apps/scripts: /update_all.R script within the /share/github/apps_dev repository branch
- Run the update_projects() function
- Note that this function is defined in the apps_dev/scripts/update.R script
- Commit changes
3.1.3 BioAssesments Page
The bioassessments page is accessed from the marineenergy.app Reporting Tool in the BioAssessments Tab. BioAssessments can be updated periodically based on input from stakeholders. The content is updated through a series of steps as outlined below.
Enter new BioAssessment project information into: [databa | marineenergy.app - Google Sheet] (https://docs.google.com/spreadsheets/d/17QQ9A0G0SxIOfiuFCJFzikQ088cQbO_MMTBbjEHa9FU/edit?gid=0#gid=0)
Use RStudio to open the [apps/scriptsL /update.R] (https://github.com/marineenergy/apps/blob/apps_dev/scripts/update.R) script within the share/github/apps_dev repository branch
- Run the update_ba() function
- Note that this function is defined in the apps_dev/scripts/update.R script
3.1.4 Edit Documents and BioAssessments and/or excerpts via an RShiny Data Entry Application
The Application to add and/or edit FERC Documents is located here: https://shiny.marineenergy.app/edit/
The Application to add and/or edit BioAssessments is located here: https://shiny.marineenergy.app/edit-ba/