Skip to content
This repository has been archived by the owner on Jan 14, 2025. It is now read-only.

Commit

Permalink
Merge branch 'feat/fix-issue-#74' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudius-Appel committed May 17, 2024
2 parents 7597784 + 390ab1d commit 7db8a4b
Show file tree
Hide file tree
Showing 46 changed files with 54 additions and 54 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: duflor.gui
Title: Frontend for duflor-package
Version: 0.0.1.9052
Version: 0.0.1.9053
Author: Claudius Appel
Authors@R: c(
person("Claudius", "Appel", email = "claudius.appel@freenet.de" , role = c("aut", "cre"))
Expand Down
6 changes: 3 additions & 3 deletions R/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,10 @@ duflor_gui <- function() {
folder_path = NA
)
DEBUGKEYS <- reactiveValues(
force.prints = FALSE,
force.log = FALSE,
# if you want to have functionality blocked by the dev-console, add
# the key here with its default value.
# Next, update the logic within the function `dev_key_handler`
set.author = TRUE

)
FLAGS <- reactiveValues(
analyse_single_image = FALSE,
Expand Down
10 changes: 5 additions & 5 deletions R/dev_key_handler.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,20 @@
#'
dev_key_handler <- function(input, DATA, DEBUGKEYS, session, use_logical_cores) {
# add valid keys here
# private, undocumentable keys must be prefixed with 3 `-`
Arr <- str_split("--force-prints,--force-log,---set-author,---set-cores,-h",",")
# then add them to the reactive 'DEBUGKEYS' so that it can be accessed elsewhere as well.
keys_array <- str_split("---set-cores,-h",",")
# then add them to the reactive 'DEBUGKEYS' (see 'app.R', search for 'DEBUGKEYS <- reactiveValues(')
# so that it can be accessed elsewhere as well.
Keys <- unlist(str_split(input$dev_pass,","))
for (each in Keys) {
each_ <- str_remove_all(each,"=(1|0|FALSE|TRUE)")
each_ <- str_remove_all(each,"=(F|T)")
each__ <- str_remove_all(each,"=.*")
if ((each %in% Arr[[1]]) || (each_ %in% Arr[[1]]) || (each__ %in% Arr[[1]])) { # BUG: this bool returns an array if `each` is a char-vector itself.
if ((each %in% keys_array[[1]]) || (each_ %in% keys_array[[1]]) || (each__ %in% keys_array[[1]])) { # BUG: this bool returns an array if `each` is a char-vector itself.
if (each=="-h") {
showNotification(
ui = str_c(
"Available dev Keys (see documentation): ",
str_flatten_comma(Arr[[1]][!str_count(Arr[[1]], "---")])
str_flatten_comma(keys_array[[1]])
),
duration = DATA$notification_duration,
type = "message"
Expand Down
2 changes: 1 addition & 1 deletion docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/LICENSE-text.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/LICENSE.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/general-user-manual.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/identifier-cropping.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/image-cropping.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/modifying-hsv-bounds.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/optimising-speed.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/parallelisation.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/raising-issues.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/saving-and-restoring-application-states.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions docs/authors.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ articles:
parallelisation: parallelisation.html
raising-issues: raising-issues.html
saving-and-restoring-application-states: saving-and-restoring-application-states.html
last_built: 2024-05-17T17:55Z
last_built: 2024-05-17T20:05Z
urls:
reference: https://Claudius-Appel.github.io/duflor.gui/reference
article: https://Claudius-Appel.github.io/duflor.gui/articles
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/convert_pixels_to_area_gui.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/dev_key_handler.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/duflor_gui.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/execute_analysis.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/execute_multiple.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/execute_single.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/get_KPI_plot.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/get_group.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/get_image_dimensions.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/key_handle_cores.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/limit_identifier_coordinates.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/limit_to_range.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/open_parallelPanel_event.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/prepare_resultsObject.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/render_selected_mask.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/restore_state.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7db8a4b

Please sign in to comment.