Skip to content

Commit

Permalink
v2.0.0.9144
Browse files Browse the repository at this point in the history
- refactor: Modify language on Shiny app pop up for assign class
  • Loading branch information
leppott committed May 9, 2024
1 parent 98b5fcd commit 792dc03
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 10 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: BCGcalc
Type: Package
Title: Biological Condition Gradient, calculator
Version: 2.0.0.9143
Version: 2.0.0.9144
Authors@R: c(
person("Erik W.", "Leppo", email="Erik.Leppo@tetratech.com", role=c("aut","cre")),
person("Jen", "Stamp", email="Jen.Stamp@tetratech.com", role="ctb"),
Expand Down
10 changes: 7 additions & 3 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
BCGcalc-NEWS
================
<Erik.Leppo@tetratech.com>
2024-04-11 09:03:35.739538
2024-05-09 10:13:21.485054

<!-- NEWS.md is generated from NEWS.Rmd. Please edit that file -->

#> Last Update: 2024-04-11 09:03:35.751149
#> Last Update: 2024-05-09 10:13:21.506861

# BCGcalc 2.0.0.9142 (2024-04-11)
# BCGcalc 2.0.0.9144 (2024-05-09)

- refactor: Modify language on Shiny app pop up for assign class

# BCGcalc 2.0.0.9143 (2024-04-11)

- fix: Update MetricFlags.xlsx for FL Coral BCG

Expand Down
10 changes: 7 additions & 3 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
BCGcalc-NEWS
================
<Erik.Leppo@tetratech.com>
2024-04-11 09:03:35.739538
2024-05-09 10:13:21.485054

<!-- NEWS.md is generated from NEWS.Rmd. Please edit that file -->

#> Last Update: 2024-04-11 09:03:35.751149
#> Last Update: 2024-05-09 10:13:21.506861

# BCGcalc 2.0.0.9142 (2024-04-11)
# BCGcalc 2.0.0.9144 (2024-05-09)

- refactor: Modify language on Shiny app pop up for assign class

# BCGcalc 2.0.0.9143 (2024-04-11)

- fix: Update MetricFlags.xlsx for FL Coral BCG

Expand Down
6 changes: 5 additions & 1 deletion NEWS.rmd
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ knitr::opts_chunk$set(
cat(paste0("Last Update: ",Sys.time()))
```

# BCGcalc 2.0.0.9142 (2024-04-11)
# BCGcalc 2.0.0.9144 (2024-05-09)

* refactor: Modify language on Shiny app pop up for assign class

# BCGcalc 2.0.0.9143 (2024-04-11)

* fix: Update MetricFlags.xlsx for FL Coral BCG

Expand Down
2 changes: 1 addition & 1 deletion inst/shiny-examples/BCGcalc/global.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Shiny Global File

# Version ----
pkg_version <- "2.0.0.9143"
pkg_version <- "2.0.0.9144"

# Packages----
# nolint start
Expand Down
30 changes: 29 additions & 1 deletion inst/shiny-examples/BCGcalc/server.R
Original file line number Diff line number Diff line change
Expand Up @@ -1055,6 +1055,15 @@ shinyServer(function(input, output) {
names(df_sites)[boo_dup] <- names_old[boo_dup]
}## IF ~ boo_dup

### Subset, required columns ----
# col_req <- c(sel_col_sampid
# , sel_col_lat
# , sel_col_lon
# #, sel_col_epsg
# , "EPSG_CALC")
# df_sites <- unique(df_sites)
# col_remove <- c("TaxaID", "N_Taxa")

# File Size
nrow_sites <- nrow(df_sites)
if (nrow_sites > 500) {
Expand Down Expand Up @@ -1487,6 +1496,17 @@ shinyServer(function(input, output) {
df_input[, sel_col_indexclass] <- NA_character_
### Remove
df_input[, sel_col_indexclass] <- NULL


### Subset, required columns ----
# col_req <- c(sel_col_sampid
# , sel_col_indexname
# , sel_col_indexclass
# , sel_col_elev
# , sel_col_slope)
# # df_sites <- unique(df_sites)
#col_remove <- c("TaxaID", "N_Taxa")


## Calc, 03, Run Function ----
prog_detail <- "Calculate, Index Class"
Expand Down Expand Up @@ -2649,14 +2669,22 @@ shinyServer(function(input, output) {

# Inform user about number of samples outside of experience of model
msg <- paste0(n_total, " = Total number of samples", "\n\n"
, n_bad_any, " = Total number of samples outside of model experience", "\n\n"
, n_bad_any
, " = Total number of samples outside of model experience, transitional (close to elevation/gradient thresholds), or with very high gradient (more prone to scour)"
, "\n\n"
, "\n"
, "Outside of model experience:", "\n"
, n_bad_indexclass, " = Index_Class, incorrect (LoGrad-HiElev)", "\n"
, n_bad_eco3, " = Ecoregion III, incorrect (not 1, 2, 3, 4, or 77)", "\n"
, n_bad_precip, " = precipitation, low (< 650 mm)", "\n"
, n_bad_wshedarea_small, " = watershed area, small (< 5 km2)", "\n"
, n_bad_wshedarea_large, " = watershed area, large (> 260 km2)", "\n"
, "\n"
, "Transitional between classes:", "\n"
, n_bad_elev_trans, " = elevation, transitional (700 - 800 m)", "\n"
, n_bad_slope_trans, " = slope, transitional (0.8 - 1.2%)", "\n"
, "\n"
, "High slope:", "\n"
, n_bad_slope_vhigh, " = slope, very high (>= 8%)", "\n\n"
, "('NA' if data field not provided in input file)."
)
Expand Down

0 comments on commit 792dc03

Please sign in to comment.