leppott / ContDataQC

Quality control checks on continuous data. Example data is from a HOBO data logger with 30 minute intervals.
https://leppott.github.io/ContDataQC/
MIT License
20 stars 10 forks source link

Shiny App - Edit Thresholds #148

Closed leppott closed 1 year ago

leppott commented 1 year ago

Describe the bug Edit "thresholds" screen. The values that are not straight numbers (e.g., 10^3) do not come through.

Writing back to the file is fine.

To Reproduce Navigate to the edit thresholds Select any of Sensor Depth, Discharge, Turbidity, Chl a, or Water Level Spike test will not show any values

Expected behavior Should have the values from Config.R

Screenshots image

Additional context The code references the text file Config.R and pulls the text. If not a number it does not try to convert it. Should pull instead from the environment (e.g., ContData.env$myThresh.Gross.Suspect.Hi.SensorDepth).

Writing is fine.

leppott commented 1 year ago

The problem was the values in the Config.R were not numeric without evaluation (or were values from elsewhere in the environment).

image

leppott commented 1 year ago

Load the env in Global (same as in ContDataQC function).

image

leppott commented 1 year ago

Can now reference the values straight from the environment. Will only do for the values not showing.

image