Skip to content

Commit

Permalink
v2.0.0.9116
Browse files Browse the repository at this point in the history
- fix: File builder taxa translate remove validate statement from
  pop up
  - Was causing the server to pause and not continue
  • Loading branch information
leppott committed Nov 28, 2023
1 parent 271bffb commit a6a3116
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 13 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.9115
Version: 2.0.0.9116
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: 8 additions & 2 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
BCGcalc-NEWS
================
<Erik.Leppo@tetratech.com>
2023-11-21 16:49:58.773309
2023-11-28 15:20:03.506951

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

#> Last Update: 2023-11-21 16:49:58.803055
#> Last Update: 2023-11-28 15:20:03.544012

# BCGcalc 2.0.0.9116 (2023-11-28)

- refactor: File builder taxa translate remove validate statement from
pop up
- Was causing the server to pause and not continue

# BCGcalc 2.0.0.9115 (2023-11-21)

Expand Down
10 changes: 8 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
BCGcalc-NEWS
================
<Erik.Leppo@tetratech.com>
2023-11-21 16:49:58.773309
2023-11-28 15:20:03.506951

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

#> Last Update: 2023-11-21 16:49:58.803055
#> Last Update: 2023-11-28 15:20:03.544012

# BCGcalc 2.0.0.9116 (2023-11-28)

- refactor: File builder taxa translate remove validate statement from
pop up
- Was causing the server to pause and not continue

# BCGcalc 2.0.0.9115 (2023-11-21)

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

# BCGcalc 2.0.0.9116 (2023-11-28)

* refactor: File builder taxa translate remove validate statement from pop up
+ Was causing the server to pause and not continue

# BCGcalc 2.0.0.9115 (2023-11-21)

* feature: Add pop-up for taxa translate with mismatch taxa
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.9115"
pkg_version <- "2.0.0.9116"

# Packages----
# nolint start
Expand Down
37 changes: 30 additions & 7 deletions inst/shiny-examples/BCGcalc/server.R
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ shinyServer(function(input, output) {
# Increment the progress bar, and update the detail text.
incProgress(1/prog_n, detail = prog_detail)
Sys.sleep(2 * prog_sleep)

# Inform user about number of taxa mismatches
## calc number of mismatch
df_mismatch <- data.frame(taxatrans_results$nonmatch)
Expand All @@ -801,7 +801,7 @@ shinyServer(function(input, output) {
, type = "info"
, closeOnEsc = TRUE
, closeOnClickOutside = TRUE)
validate(msg)
#validate(msg)

## Calc, 07, Clean Up ----
prog_detail <- "Calculate, Clean Up"
Expand Down Expand Up @@ -4995,6 +4995,13 @@ shinyServer(function(input, output) {
path_template <- file.path(path_results_user, fn_template)
n_skip <- 3

### Template, Other
sh_template <- "other"
df_template_other <- readxl::read_excel(path = path_template
, sheet = sh_template
, skip = n_skip)
df_template_other[, "sheet"] <- sh_template

### Template, Summary, Header ----
sh_template <- "summary_header"
df_template_summary_header <- readxl::read_excel(path = path_template
Expand Down Expand Up @@ -5119,8 +5126,7 @@ shinyServer(function(input, output) {
# import each file
# Check for column in file
df_template_sourcefiles[, "exist_col"] <- NA



## Calc, 03, Data ----
prog_detail <- "Calculation, Create Data Tables"
message(paste0("\n", prog_detail))
Expand Down Expand Up @@ -5161,7 +5167,10 @@ shinyServer(function(input, output) {
class(notes_toc$Link) <- "hyperlink"

# compile each in a helper script


# Get stations
pk_stations <- df_template_other[df_template_other[, "file"] == "Stations", "primarykey", TRUE]

### Data, Summary, Header ----
# df_report_summary_header <- mtcars
ls_report_summary_header <- build_report_table(df_template_summary_header
Expand Down Expand Up @@ -5281,7 +5290,20 @@ shinyServer(function(input, output) {
Sys.sleep(prog_sleep)

# Filter for each Station

stations_all <- unique(df_report_site[, pk_stations])

## create file for each station
for (s in stations_all) {
# Filter tables
df_report_summary_header_s <- df_report_summary_header
df_report_summary_wide_s <- df_report_summary_wide
df_report_topindicator_s <- df_report_topindicator
df_report_samples_s <- df_report_samples
df_report_flags_s <- df_report_flags
df_report_site_s <- df_report_site
# df_report_taxatrans_s <- df_report_taxatrans

}## FOR ~ s

### Excel, Create File----
# Create Workbook
Expand Down Expand Up @@ -5545,13 +5567,14 @@ shinyServer(function(input, output) {
openxlsx::addStyle(wb, sheet = "taxatrans", rows = 1, cols = 1:4, style = style_h1)

### Excel, col width ----
# doesn't seem to work
# openxlsx::setColWidths(wb, sheet = "summary", cols = 1:ncol(df_report_summary_wide), widths = "auto")
# openxlsx::setColWidths(wb, sheet = "topindicator", cols = 1:ncol(df_report_topindicator), widths = "auto")
# openxlsx::setColWidths(wb, sheet = "samples", cols = 1:ncol(df_report_samples), widths = "auto")
# openxlsx::setColWidths(wb, sheet = "flags", cols = 1:ncol(df_report_flags), widths = "auto")
# openxlsx::setColWidths(wb, sheet = "site", cols = 1:ncol(df_report_site), widths = "auto")
# openxlsx::setColWidths(wb, sheet = "taxatrans", cols = 1:ncol(df_report_taxatrans), widths = "auto")

### Excel, Conditional Formatting----

#### CF, Fuzzy Thermal----
Expand Down

0 comments on commit a6a3116

Please sign in to comment.