Skip to content

Commit cc8906c

Browse files
committed
Try fixing vignette
1 parent fcd0f0c commit cc8906c

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

_pkgdown.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ template:
2626
border-radius: 0.5rem
2727
btn-border-radius: 0.25rem
2828
development:
29-
mode: auto
29+
mode: auto

vignettes/validation.Rmd

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ paths <- kwb.utils::resolve(PATHS, desktop = kwb.utils::desktop())
3939
dir_config <- file.path(kwb.utils::desktop(), "R_Development/RScripts/Flusshygiene/config")
4040
paths_read <- kwb.utils::readDictionary(file.path(dir_config, "pathDictionary.txt"))
4141
paths_read <- kwb.utils::resolve(paths_read)
42+
paths_read$dir.data <- ifelse(dir.exists(paths_read$dir.data),
43+
paths_read$dir.data,
44+
"<path_dir.data>")
45+
paths_read$dir.corr <- ifelse(dir.exists(paths_read$dir.corr),
46+
paths_read$dir.corr,
47+
"<path_dir.corr>")
4248
```
4349

4450
This document explains the rain data validation procedure as we started to apply
@@ -78,18 +84,18 @@ The task to be performed during "rain data validation" is to
7884
We follow a semi-automatic approach in which we use
7985

8086

81-
- the script ``r windowsPath(PATHS$script_1)`` to read, reformat and merge rain
87+
- the script ``r kwb.utils::windowsPath(PATHS$script_1)`` to read, reformat and merge rain
8288
data and correction data and to save the result to RData files and
8389

84-
- the script ``r windowsPath(PATHS$script_2)`` to read rain data and correction
90+
- the script ``r kwb.utils::windowsPath(PATHS$script_2)`` to read rain data and correction
8591
data from the RData files and prepare csv files in which the time intervals
8692
that most probably contain rain heights that need correction are indicated.
8793

8894
The first script reads
8995

90-
- rain data files from ``r windowsPath(paths_read$dir.data)`` and
96+
- rain data files from ``r kwb.utils::windowsPath(paths_read$dir.data)`` and
9197

92-
- correction files from ``r windowsPath(paths_read$dir.corr)``.
98+
- correction files from ``r kwb.utils::windowsPath(paths_read$dir.corr)``.
9399

94100
The user can then check the CSV files created by the second script, edit them
95101
appropriately and save them under a different name (`userdiff_*.csv` in the

0 commit comments

Comments
 (0)