-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2022-06-07 - fix: Modify config.R for salinity, Issue #138 - Update other copies in package - feature: Begin adding miniDOT to shiny, Issue #141
- Loading branch information
Showing
21 changed files
with
432 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Create HTML files for use with Shiny app | ||
# Erik.Leppo@tetratech.com | ||
# 2022-06-01 | ||
#~~~~~~~~~~~~~~ | ||
|
||
|
||
# Packages | ||
# libary(rmarkdown) | ||
|
||
# # Files | ||
# path_rmd <- "data-raw/rmd" | ||
# myFiles <- list.files(path = path_rmd | ||
# , pattern = "^App_.+\\.Rmd$" | ||
# , full.names = TRUE) | ||
# #myFiles <- myFiles[!myFiles %in% "data-raw/RMD/ShinyHTML_About.Rmd"] | ||
# | ||
# # Loop over files | ||
# | ||
# | ||
# # Render as HTML | ||
# path_shiny_www <- file.path("inst", "shiny-examples", "ContDataQC", "www") | ||
# | ||
# | ||
# for(i in myFiles) { | ||
# # file name w/o extension | ||
# #i_fn <- tools::file_path_sans_ext(basename(i)) | ||
# # save to HTML | ||
# rmarkdown::render(input = i | ||
# , output_dir = path_shiny_www | ||
# #, output_format = rmarkdown::html_fragment(df_print = "kable") | ||
# ) | ||
# }## FOR ~ i | ||
# | ||
# shell.exec(normalizePath(path_shiny_www)) | ||
|
||
#______________________________ | ||
# Knit to HTML manually | ||
|
||
path_rmd <- "data-raw/rmd" | ||
path_shiny_www <- file.path("inst", "shiny-examples", "ContDataQC", "www") | ||
|
||
# open folder | ||
shell.exec(normalizePath(path_rmd)) | ||
|
||
# Copy | ||
myFile <- list.files(path = path_rmd | ||
, pattern = "^App_.+\\.html$" | ||
, full.names = TRUE) | ||
file.copy(myFile | ||
, file.path(path_shiny_www, basename(myFile)) | ||
, overwrite = TRUE) | ||
# Delete | ||
unlink(myFile) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
title: "DataPrep_miniDOT_Cat" | ||
output: html_fragment | ||
--- | ||
```{r setup, include=FALSE} | ||
# --- | ||
# title: "DataPrep_miniDOT_Cat" | ||
# date: '2022-06-01' | ||
# --- | ||
knitr::opts_chunk$set(echo = FALSE) | ||
``` | ||
|
||
# miniDOT Concatenate | ||
|
||
This function compiles Dissolved Oxygen data files downloaded from PME miniDot | ||
DO loggers. Use if the data where not compiled using the PME java app on the | ||
logger. | ||
|
||
All files uploaded will be merged into a single multi-column CSV file. | ||
|
||
## Examples | ||
|
||
Example images of before and and after performing reformat. | ||
|
||
![Raw miniDOT file](miniDOT_1raw.png) | ||
|
||
|
||
![Concatenated miniDOT file](miniDOT_2cat.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
title: "DataPrep_miniDOT_Reformat" | ||
output: html_fragment | ||
--- | ||
```{r setup, include=FALSE} | ||
# --- | ||
# title: "DataPrep_miniDOT_Reformat" | ||
# date: '2022-06-01' | ||
# --- | ||
knitr::opts_chunk$set(echo = FALSE) | ||
``` | ||
|
||
# miniDOT Reformat | ||
|
||
The miniDOT reformat function will convert the concatenated miniDOT file to the standard expected input for use with ContDataQC. | ||
|
||
The CSV output of this function should be placed in the Data0_Original folder. | ||
|
||
## Instructions | ||
|
||
* Click the ‘Browse’ button and select the input file(s). You can run multiple files at once. The status bar will tell you when the upload is complete. | ||
|
||
* Click the ‘Reformat miniDOT file(s)’ button; a status bar will appear in the lower right corner. | ||
|
||
* After the function is done running, a ‘Download’ button will appear. Click this button. | ||
|
||
* Save the zipped file in the Data1_RAW folder | ||
|
||
* Your files are now ready to be run through the QC function! | ||
|
||
## Common errors - | ||
|
||
* DO percent saturation values of all NA. This is caused by the miniDOT cat program when no inputs are provided to calculate DO percent saturation. All NA values will cause no statistics to be generated for this parameter later in the QC process. | ||
|
||
## Examples | ||
|
||
Example images of before and and after performing reformat. | ||
|
||
![Concatenated miniDOT file](miniDOT_2cat.png) | ||
|
||
|
||
![Reformated miniDOT file](miniDOT_3reformat.png) | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.