Skip to content

Commit

Permalink
v2.0.0.9133
Browse files Browse the repository at this point in the history
- fix: Add shiny::validate(msg) back to shiny alert for when no file
  uploaded
  - Avoid the app crashing by preventing rest of code from running
- refactor: update shiny alert message for upload to account for file
  upload not complete
- fix: Update order of conditional formatting for nt_ti_stenocold
  • Loading branch information
leppott committed Jan 9, 2024
1 parent be40113 commit b04b5e0
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 12 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.9132
Version: 2.0.0.9133
Authors@R: c(
person("Erik W.", "Leppo", email="[email protected]", role=c("aut","cre")),
person("Jen", "Stamp", email="[email protected]", role="ctb"),
Expand Down
13 changes: 11 additions & 2 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
BCGcalc-NEWS
================
<[email protected]>
2024-01-08 17:27:10.207971
2024-01-09 10:27:29.176497

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

#> Last Update: 2024-01-08 17:27:10.241104
#> Last Update: 2024-01-09 10:27:29.229061

# BCGcalc 2.0.0.9133 (2024-01-09)

- fix: Add shiny::validate(msg) back to shiny alert for when no file
uploaded
- Avoid the app crashing by preventing rest of code from running
- refactor: update shiny alert message for upload to account for file
upload not complete
- fix: Update order of conditional formatting for nt_ti_stenocold

# BCGcalc 2.0.0.9132 (2024-01-08)

Expand Down
13 changes: 11 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
BCGcalc-NEWS
================
<[email protected]>
2024-01-08 17:27:10.207971
2024-01-09 10:27:29.176497

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

#> Last Update: 2024-01-08 17:27:10.241104
#> Last Update: 2024-01-09 10:27:29.229061

# BCGcalc 2.0.0.9133 (2024-01-09)

- fix: Add shiny::validate(msg) back to shiny alert for when no file
uploaded
- Avoid the app crashing by preventing rest of code from running
- refactor: update shiny alert message for upload to account for file
upload not complete
- fix: Update order of conditional formatting for nt_ti_stenocold

# BCGcalc 2.0.0.9132 (2024-01-08)

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

# BCGcalc 2.0.0.9133 (2024-01-09)

* fix: Add shiny::validate(msg) back to shiny alert for when no file uploaded
+ Avoid the app crashing by preventing rest of code from running
* refactor: update shiny alert message for upload to account for file upload not complete
* fix: Update order of conditional formatting for nt_ti_stenocold

# BCGcalc 2.0.0.9132 (2024-01-08)

* fix: Remove testing line in Report server code
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.9132"
pkg_version <- "2.0.0.9133"

# Packages----
# nolint start
Expand Down
14 changes: 8 additions & 6 deletions inst/shiny-examples/BCGcalc/server.R
Original file line number Diff line number Diff line change
Expand Up @@ -5140,13 +5140,15 @@ shinyServer(function(input, output) {

if (is.null(inFile)) {
# end process with pop up
msg <- "No file uploaded. Upload a file and try again."
msg <- paste("No file uploaded. Upload a file and try again."
, "OR file did not finish loading.\nWait for 'Upload Complete' message before clicking."
, sep = "\n\n")
shinyalert::shinyalert(title = "Report"
, text = msg
, type = "error"
, closeOnEsc = TRUE
, closeOnClickOutside = TRUE)
# shiny::validate(msg)
shiny::validate(msg)
}## IF ~ is.null(inFile)

# Remove existing files in "results"
Expand Down Expand Up @@ -6662,13 +6664,13 @@ shinyServer(function(input, output) {
openxlsx::conditionalFormatting(wb, "summary"
, cols = cols_cf
, rows = rows_cf
, rule = '>=3'
, style = style_cf_ft_vcold_cold)
, rule = '>=1'
, style = style_cf_ft_cold)
openxlsx::conditionalFormatting(wb, "summary"
, cols = cols_cf
, rows = rows_cf
, rule = '>=1'
, style = style_cf_ft_cold)
, rule = '>=3'
, style = style_cf_ft_vcold_cold)
}## IF ~ !is.na(cols_cf)

##### nt_ti_stenocold_cold----
Expand Down

0 comments on commit b04b5e0

Please sign in to comment.