Commit 15d7a542 authored by Delaigue Olivier's avatar Delaigue Olivier
Browse files

style(PE_Oudin): add a capital letter to the expression "Julian day"

Refs #134
Showing with 4 additions and 4 deletions
+4 -4
...@@ -41,8 +41,8 @@ PE_Oudin <- function(JD, Temp, ...@@ -41,8 +41,8 @@ PE_Oudin <- function(JD, Temp,
TimeStepIn <- match.arg(TimeStepIn , choices = TimeStep) TimeStepIn <- match.arg(TimeStepIn , choices = TimeStep)
TimeStepOut <- match.arg(TimeStepOut, choices = TimeStep) TimeStepOut <- match.arg(TimeStepOut, choices = TimeStep)
rleJD <- rle(JD) rleJD <- rle(JD)
msgDaliy <- "each day should have only one identical value of julian days. The time series is not sorted, or contains duplicate or missing dates" msgDaliy <- "each day should have only one identical value of Julian days. The time series is not sorted, or contains duplicate or missing dates"
msgHourly <- "each day must have 24 identical values of julian days (one for each hour). The time series is not sorted, or contains duplicate or missing dates" msgHourly <- "each day must have 24 identical values of Julian days (one for each hour). The time series is not sorted, or contains duplicate or missing dates"
if (TimeStepIn == "daily" & any(rleJD$lengths != 1)) { if (TimeStepIn == "daily" & any(rleJD$lengths != 1)) {
warning(msgDaliy) warning(msgDaliy)
} }
......
...@@ -66,8 +66,8 @@ test_that("PE_Oudin works", { ...@@ -66,8 +66,8 @@ test_that("PE_Oudin works", {
test_that("Inconsitent time series", { test_that("Inconsitent time series", {
skip_on_cran() skip_on_cran()
msgDaily <- "each day should have only one identical value of julian days. The time series is not sorted, or contains duplicate or missing dates" msgDaily <- "each day should have only one identical value of Julian days. The time series is not sorted, or contains duplicate or missing dates"
msgHoury <- "each day must have 24 identical values of julian days (one for each hour). The time series is not sorted, or contains duplicate or missing dates" msgHoury <- "each day must have 24 identical values of Julian days (one for each hour). The time series is not sorted, or contains duplicate or missing dates"
# duplicated dates # duplicated dates
DatesFor1Dupl <- BasinObs_L0123001$DatesR DatesFor1Dupl <- BasinObs_L0123001$DatesR
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment