Skip to content

Commit

Permalink
Added readme and info in first tab
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelso committed Jul 23, 2024
1 parent 4bc2912 commit 24fda7c
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 4 deletions.
1 change: 1 addition & 0 deletions R/mod1_server.R
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

17 changes: 15 additions & 2 deletions R/mod_info_UI.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,19 @@ mod_info_UI <- function(id){
card_left <- card(
h1("Welcome"),

h4("Objective"),

p(
"This app aims to help field inventory teams and other plants observers and
enthusiasts to validate and keep your species list updated. The script validates
a list of species names given in a CSV file."
),

p(
"you are using the package ", tags$code("speval"), "version: ",
textOutput(outputId = ns("speval_version"), inline = TRUE), "."
),

h4("What is ", tags$code("arena-helpers")),
p(
"This app is part of of a collection of tools designed to support Forest inventory related
Expand All @@ -39,11 +52,11 @@ mod_info_UI <- function(id){

## Emission factors ----------------------------------------------------------
card_right_sub1 <- card(
p("Placeholder for content"),
p("Placeholder for content sub1"),
)

card_right_sub2 <- card(
p("placeholder for content")
p("placeholder for content sub2")
)

card_right_top <- card(
Expand Down
12 changes: 12 additions & 0 deletions R/mod_info_server.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
mod_info_server <- function(id, rv) {

moduleServer(id, function(input, output, session) {

ns <- session$ns

## OUTPUTS #################################################################
output$speval_version <- renderText({ as.character(packageVersion("speval")) })

}) ## END module server function

}
4 changes: 2 additions & 2 deletions R/shiny_run_speval.R
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ shiny_run_speval <- function(...) {
title = i18n$t("Info"), #OR title = "I am module 1"
value = "mod1",
icon = icon("info"),
mod_info_UI("tab_info_UI") ## See R/mod1_UI.R
mod_info_UI("tab_info") ## See R/mod1_UI.R
),

nav_panel(
Expand Down Expand Up @@ -139,7 +139,7 @@ shiny_run_speval <- function(...) {
r_lang <- reactive({ input$language })

## + Module server functions ============================================
# mod_home_server("tab_home", rv = rv)
mod_info_server("tab_info", rv = rv)
#
# mod_CV_server("tab_cv", rv = rv)
#
Expand Down
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# speval: Plant Species Name Validation Tool

This app aims to help field inventory teams and other plants observers and
enthusiasts to validate and keep your species list updated.

The app takes a CSV file as input, checks for common species lists harmonization issues then compare plant species names against renowned taxonomic backbones.

The outputs are: (1) a comparison of the different backbones for each name submitted and (2) a series of statistics to help users correct outdated names and typos but also decide what to do in case of conflict between different backbones.


## How to install

This apps is intended to run locally as the validation process can take from a few seconds to a few hours for long lists (national level surveys in tropical countries for example).

It requires R and Rstudio installation (see: https://posit.co/download/rstudio-desktop/)

Windows users may need to also install Rtools after R and Rstudio: https://cran.r-project.org/bin/windows/Rtools/rtools44/rtools.html

Once R and Rstudio are install, from the R console run:

## Installation

remotes::install_github("openforis/speval")

## Launch the shiny app

speval::shiny_run_speval()


0 comments on commit 24fda7c

Please sign in to comment.