Skip to content

Commit 8dc679e

Browse files
committed
v2.0.7.9026
- refactor: Move version number from title to about, Issue \#161 - refactor: Add file identifiers to download links, Issue \#160
1 parent 1dd6106 commit 8dc679e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+715
-650
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: ContDataQC
22
Title: Quality Control (QC) of Continous Monitoring Data
3-
Version: 2.0.7.9025
3+
Version: 2.0.7.9026
44
Authors@R: c(
55
person("Erik W", "Leppo", email="[email protected]",role=c("aut","cre")),
66
person("Ann","Roseberry Lincoln", role="ctb"),
@@ -42,5 +42,5 @@ Remotes:
4242
tsangyp/StreamThermal,
4343
jasonelaw/iha
4444
StagedInstall: no
45-
RoxygenNote: 7.3.0
45+
RoxygenNote: 7.3.1
4646
Config/testthat/edition: 3

NEWS

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,17 @@ NEWS-ContDataQC
33

44
<!-- NEWS.md is generated from NEWS.Rmd. Please edit that file -->
55

6-
#> Last Update: 2024-01-25 12:04:12.540163
6+
#> Last Update: 2024-01-31 14:12:04.111378
77

88
# Version History
99

10+
## v2.0.7.9026
11+
12+
2024-01-31
13+
14+
- refactor: Move version number from title to about, Issue \#161
15+
- refactor: Add file identifiers to download links, Issue \#160
16+
1017
## v2.0.7.9025
1118

1219
2024-01-25

NEWS.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,17 @@ NEWS-ContDataQC
33

44
<!-- NEWS.md is generated from NEWS.Rmd. Please edit that file -->
55

6-
#> Last Update: 2024-01-25 12:04:12.540163
6+
#> Last Update: 2024-01-31 14:12:04.111378
77

88
# Version History
99

10+
## v2.0.7.9026
11+
12+
2024-01-31
13+
14+
- refactor: Move version number from title to about, Issue \#161
15+
- refactor: Add file identifiers to download links, Issue \#160
16+
1017
## v2.0.7.9025
1118

1219
2024-01-25

NEWS.rmd

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ cat(paste0("Last Update: ",Sys.time()))
2121

2222
# Version History
2323

24+
## v2.0.7.9026
25+
2024-01-31
26+
27+
* refactor: Move version number from title to about, Issue #161
28+
* refactor: Add file identifiers to download links, Issue #160
29+
2430
## v2.0.7.9025
2531
2024-01-25
2632

data-raw/ProcessRMD_Gibbs_ShinyHTML.R

Lines changed: 58 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,68 @@
44
# 2022-09-16
55
#~~~~~~~~~~~~~~
66

7+
# AUTO, RMD 2 HTML ----
8+
# EWL, 2024-01-31
9+
# Render RMD to HTML and move to www
710

811
# Packages
912
# libary(rmarkdown)
1013

14+
# Files
15+
myFiles <- list.files(path = "inst/shiny-examples/ContDataQC/rmd"
16+
, pattern = "^App_"
17+
, full.names = TRUE)
18+
19+
# Loop over files
20+
21+
22+
# Render as HTML
23+
path_shiny_www <- file.path("inst"
24+
, "shiny-examples"
25+
, "ContDataQC"
26+
, "www"
27+
, "RMD_HTML")
28+
29+
30+
for (i in myFiles) {
31+
# file name w/o extension
32+
#i_fn <- tools::file_path_sans_ext(basename(i))
33+
# save to HTML
34+
rmarkdown::render(input = i
35+
, output_dir = path_shiny_www)
36+
}## FOR ~ i
37+
38+
shell.exec(normalizePath(path_shiny_www))
39+
40+
41+
# MANUAL, Move Knitted HTML ----
42+
# Knit to HTML manually
43+
# Move those HTML files to www
44+
45+
path_rmd <- file.path("inst", "shiny-examples", "ContDataQC", "rmd")
46+
path_shiny_www <- file.path("inst", "shiny-examples", "ContDataQC", "www", "RMD_HTML")
47+
48+
# open folder
49+
shell.exec(normalizePath(path_rmd))
50+
51+
# Copy
52+
myFile <- list.files(path = path_rmd
53+
, pattern = "^App_.+\\.html$"
54+
, full.names = TRUE)
55+
file.copy(myFile
56+
, file.path(path_shiny_www, basename(myFile))
57+
, overwrite = TRUE)
58+
# Delete
59+
unlink(myFile)
60+
61+
62+
63+
64+
# OLD code ----
65+
#
66+
# Packages
67+
# libary(rmarkdown)
68+
1169
# # Files
1270
# path_rmd <- "data-raw/rmd"
1371
# myFiles <- list.files(path = path_rmd
@@ -33,23 +91,3 @@
3391
# }## FOR ~ i
3492
#
3593
# shell.exec(normalizePath(path_shiny_www))
36-
37-
#______________________________
38-
# Knit to HTML manually
39-
40-
path_rmd <- file.path("inst", "shiny-examples", "ContDataQC", "rmd")
41-
path_shiny_www <- file.path("inst", "shiny-examples", "ContDataQC", "www", "RMD_HTML")
42-
43-
# open folder
44-
shell.exec(normalizePath(path_rmd))
45-
46-
# Copy
47-
myFile <- list.files(path = path_rmd
48-
, pattern = "^App_.+\\.html$"
49-
, full.names = TRUE)
50-
file.copy(myFile
51-
, file.path(path_shiny_www, basename(myFile))
52-
, overwrite = TRUE)
53-
# Delete
54-
unlink(myFile)
55-

inst/shiny-examples/ContDataQC/external/tab_1_About.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ function() {
77
tabsetPanel(type = "tabs"
88

99
, tabPanel("Overview"
10+
, p(paste0("Version ", version, "."))
1011
, includeHTML("www/RMD_HTML/App_1a_Overview.html")
1112
)## tabPanel ~ END
1213

inst/shiny-examples/ContDataQC/global.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ library(shinyjs)
2121
# #access Window's zipping abilities
2222
# Sys.setenv(PATH = paste(Sys.getenv("PATH"), "C:\\Rtools\\bin", sep = ";"))
2323

24+
# Version Number
25+
version <- "2.0.7.9026"
26+
2427
#Maximum individual file size that can be uploaded is 70 MB
2528
options(shiny.maxRequestSize = 70 * 1024^2)
2629

inst/shiny-examples/ContDataQC/rmd/App_1a_Overview.rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The ContDataQC R package and Shiny app were developed with the following objecti
3333

3434
The figure below lays out the general workflow for using the ContDataQC R tools. Items in bold blue text show functions that can be performed with ContDataQC.
3535

36-
Want to try it yourself? Click [here](Custom_QC_Config_ECO66G20_test1.R) to
36+
Want to try it yourself? Click [here](Custom_QC_Config_ECO66G20_test1.R) [R] to
3737
download test files.
3838

3939
![ContDataQC Shiny App workflow](RMD_Images/1.1_Fig1_About_20230828.jpg){width=95%}

inst/shiny-examples/ContDataQC/rmd/App_1b_TestData.rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if(boo_DEBUG==TRUE){
2323
There are two sets of test files, one from Onset HOBO U20 water level loggers (non-vented pressure transducers) and one from a miniDOT DO sensor. We are happy to add more test data to this website. If you have example files that you would like to contribute, please send them to Jen Stamp ([Jen.Stamp\@tetratech.com](mailto:[email protected]){.email}).
2424

2525
# Onset HOBO
26-
The Onset HOBO U20 files can be downloaded [here](TestData_HOBOU20_20220822.zip).
26+
The Onset HOBO U20 files can be downloaded [here](TestData_HOBOU20_20220822.zip) [ZIP].
2727
The test data consist of two comma-separated values (CSV) files. The files are from the same site but cover two different time periods.
2828

2929
* **Test**
@@ -36,7 +36,7 @@ The test data consist of two comma-separated values (CSV) files. The files are f
3636

3737
# miniDOT DO Sensors
3838

39-
The miniDOT DO test files can be downloaded [here](TestData_miniDOT.zip).
39+
The miniDOT DO test files can be downloaded [here](TestData_miniDOT.zip) [ZIP].
4040
They are from one site and one deployment period.
4141
You’ll see two sets of folders. Within each folder are example input and output files.
4242

inst/shiny-examples/ContDataQC/rmd/App_1d_Tips.rmd

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,21 @@ people using the data decide whether to remove questionable measurements from
4040
their analysis.
4141

4242
* Document that you checked each point flagged as ‘F’ and ‘S’ by adding a data
43-
qualifier to the Comment column. Click [here](DataQualifiers_20220210.xlsx) to
43+
qualifier to the Comment column. Click [here](DataQualifiers_20220210.xlsx) [XLSX] to
4444
download the list of data qualifiers currently being used by RMN partners.
4545

4646
* Leave missing data cells blank.
4747

4848
## Workflow
4949

50-
Click [here](Workflow_QC_report_20220824.pdf) for recommendations on a workflow
50+
Click [here](Workflow_QC_report_20220824.pdf) [PDF] for recommendations on a workflow
5151
for reviewing the QC reports.
5252

5353
If you have a backlog of data files from multiple deployments and are wondering
54-
how to most efficiently QC the files, [here](Workflow_DataPileup_20220824.pdf)
54+
how to most efficiently QC the files, [here](Workflow_DataPileup_20220824.pdf) [PDF]
5555
is a recommended workflow.
5656

57-
Click [here](SiteVisitChecklist.zip) for a site visit checklist to help ensure
57+
Click [here](SiteVisitChecklist.zip) [ZIP] for a site visit checklist to help ensure
5858
that you do not forget to document information that is important for the data QC
5959
process.
6060

@@ -64,12 +64,12 @@ Some people have had problems with air and water sensors being out of sync (
6464
e.g., one records at 11:00 and the other records at 11:07). If you are deploying
6565
air and water sensors at a site, make sure they are recording at the same time.
6666
This will make data processing faster and easier. If you are using Onset HOBO
67-
sensors, click [here](HOBO_ConfigLaunch_20170803.pdf) for tips on configuring
67+
sensors, click [here](HOBO_ConfigLaunch_20170803.pdf) [PDF] for tips on configuring
6868
them in a way that ensures they will record at the same time.
6969

7070
Another issue that sometimes occurs is data overlap (where more than one file
7171
has measurements covering part of the same time periods). If you are using Onset
72-
HOBO sensors, click [here](HOBO_DataDownload_20170823.pdf) for procedures to
72+
HOBO sensors, click [here](HOBO_DataDownload_20170823.pdf) [PDF] for procedures to
7373
follow during data download to clear sensor memory and avoid overlapping data.
7474

7575
## Accuracy checks
@@ -79,20 +79,20 @@ lab and/or in the field with sensor measurements from the closest date/time. The
7979
sensor measurement should be within the accuracy quoted by the manufacturer (
8080
e.g., ±0.2°C if you are using the Onset HOBO proV2 sensor). Accuracy checks are
8181
used to validate your data, and in some cases, correct for sensor drift. Click
82-
[here](EXAMPLE_AccuracyCheckWkst.xlsx) to download an example of an accuracy
82+
[here](EXAMPLE_AccuracyCheckWkst.xlsx) [XLSX] to download an example of an accuracy
8383
check worksheet being kept by an RMN partner.
8484

8585
## Visual checks of time series plots
8686

8787
Visual checks of time series plots are an important part of the QC process.
88-
Click [here](PlotQC_WatchList_20220824.pdf) to see a compilation of patterns to
88+
Click [here](PlotQC_WatchList_20220824.pdf) [PDF] to see a compilation of patterns to
8989
watch for when interpreting the plots. They include ice cover, beaver activity,
9090
leaf packs, dewatering, and dead batteries. We will continue to add slides to
9191
this as we receive materials.
9292

9393
## Checking sensor data against other data sources
9494

95-
This is optional but encouraged if time permits. Click [here](Daymet_Wx_Gage.zip) for instructional
95+
This is optional but encouraged if time permits. Click [here](Daymet_Wx_Gage.zip) [ZIP] for instructional
9696
materials from David Smith (Kentucky Division of Water) on how he has been
9797
downloading data from nearby weather stations and USGS gages, as well as modeled
9898
air temperature and precipitation data from Daymet (

0 commit comments

Comments
 (0)