Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MIRACUM
dqa
DQAgui
Commits
d659934a
Commit
d659934a
authored
5 years ago
by
Jonathan Mang
Browse files
Options
Download
Email Patches
Plain Diff
Added 'demo' as dummy if sitename is not provided to use the exampledata
parent
7d470fb1
master
colored_diff_summary
development
development-Differences
feat_new_coreds
fix_no_timefiltering
fix_settings_from_env
lab-module
latest
time_compare_fix
trino
v0.2.4
v0.2.3
v0.2.2
v0.2.1
v0.2.0
v0.1.9
v0.1.8
v0.1.7
v0.1.6
v0.1.5
v0.1.4
v0.1.3
v0.1.2
v0.1.1
v0.1.0
v0.0.7
v0.0.6
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
R/moduleDashboard.R
+5
-2
R/moduleDashboard.R
data-raw/debugging_info.R
+18
-6
data-raw/debugging_info.R
with
23 additions
and
8 deletions
+23
-8
R/moduleDashboard.R
+
5
-
2
View file @
d659934a
...
...
@@ -54,6 +54,7 @@ module_dashboard_server <-
# check if sitename is present
if
(
nchar
(
input_re
()[[
"moduleConfig-config_sitename"
]])
<
2
||
any
(
grepl
(
"\\s"
,
input_re
()[[
"moduleConfig-config_sitename"
]])))
{
# site name is missing:
shiny
::
showModal
(
modalDialog
(
title
=
"Invalid values"
,
paste0
(
...
...
@@ -61,9 +62,11 @@ module_dashboard_server <-
"the site name configuration."
)
))
error_tmp
<-
T
# site name is present
## TODO: Delete the demo-sitename and re-enable the error_tmp
rv
$
sitename
<-
"Demo"
# error_tmp <- T
}
else
{
# site name is present:
rv
$
sitename
<-
input_re
()[[
"moduleConfig-config_sitename"
]]
}
...
...
This diff is collapsed.
Click to expand it.
data-raw/debugging_info.R
+
18
-
6
View file @
d659934a
port
=
3838
utils_path
=
system.file
(
"demo_data/utilities"
,
package
=
"DQAstats"
)
output_dir
=
"output/"
## debugging the MIRACUM stuff:
## ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓
utils_path
=
DQAstats
::
clean_path_name
(
system.file
(
"application/_utilities"
,
package
=
"miRacumDQA"
))
mdr_filename
=
"mdr.csv"
config_file
=
system.file
(
"application/_settings/demo_settings_INTERNAL.yml"
,
package
=
"DQAgui"
)
## ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
## debugging testdata:
## ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓
# utils_path = system.file("demo_data/utilities",
# package = "DQAstats")
# mdr_filename = "mdr_example_data.csv"
# config_file = system.file("demo_data/utilities/settings/demo_settings.yml",
# package = "DQAstats")
## ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
# debugging
launch_app
(
port
=
port
,
utils_path
=
DQAstats
::
clean_path_name
(
system.file
(
"application/_utilities"
,
package
=
"miRacumDQA"
)),
utils_path
=
utils_path
,
mdr_filename
=
mdr_filename
,
config_file
=
config_file
)
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help