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

Creation of Editable QC Threshold Values #129

Closed Blocktt closed 2 years ago

Blocktt commented 2 years ago

This pull request includes updates to the ContDataQC R Shiny app/package:

  1. Updated the tab_3QCThresh.R UI tab to include a tabPanel with editable QC threshold fields, a save button, and a download button. This UI allows a user to change default values, save their changes, and download a custom QC thresholds R file.
  2. Updated the server.R file to support and power the editable QC thresholds. The www/Config.R file is read in as a data.frame which is then slightly manipulated before being put into a reactive dataframe. The reactive dataframe is used to populate the default fields in tab_3QCThresh.R as well as store user-derived changes to input values. Changes to the input values are saved in a .tsv file in the www/ folder after a save button is hit. Once saved, the .tsv file can be downloaded as a .R file.
  3. There were minor tweaks made to the www/Config.R file. First, values such as 10^3, 10^4, and 10^5 where changed to their respective whole values because the Config.R file was read in as a data.frame which changed these to characters. Unfortunately, due to time constraints, I couldn't get R to convert these characters to numeric values. Secondly, there were minor formatting fixes such as removing duplicate calls for chlorophylla values as well as a single-letter mispelling of a variable.
codecov-commenter commented 2 years ago

Codecov Report

Merging #129 (70fdf40) into main (2ab38e3) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##            main    #129   +/-   ##
=====================================
  Coverage   0.44%   0.44%           
=====================================
  Files         23      23           
  Lines       3783    3783           
=====================================
  Hits          17      17           
  Misses      3766    3766           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 2ab38e3...70fdf40. Read the comment docs.

leppott commented 2 years ago

issue #130