* using log directory ‘/srv/hornik/tmp/CRAN_pretest/hydroTSM.Rcheck’ * using R Under development (unstable) (2026-04-26 r89963) * using platform: x86_64-pc-linux-gnu * R was compiled by Debian clang version 21.1.8 (3+b1) Debian flang version 21.1.8 (3+b1) * running under: Debian GNU/Linux forky/sid * using session charset: UTF-8 * current time: 2026-04-27 18:25:05 UTC * checking for file ‘hydroTSM/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘hydroTSM’ version ‘0.8-5’ * checking CRAN incoming feasibility ... [5s/11s] OK * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘hydroTSM’ can be installed ... [4s/4s] OK * checking package directory ... OK * checking for future file timestamps ... OK * checking ‘build’ directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [0s/0s] OK * checking whether the package can be loaded with stated dependencies ... [0s/0s] OK * checking whether the package can be unloaded cleanly ... [0s/0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK * checking whether the namespace can be unloaded cleanly ... [0s/0s] OK * checking loading without being on the library search path ... [0s/0s] OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [9s/9s] OK * checking Rd files ... [0s/0s] OK * checking Rd metadata ... OK * checking Rd line widths ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking contents of ‘data’ directory ... OK * checking data for non-ASCII characters ... [0s/0s] OK * checking data for ASCII and uncompressed saves ... OK * checking sizes of PDF files under ‘inst/doc’ ... OK * checking installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... [5s/6s] ERROR Running examples in ‘hydroTSM-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: izoo2rzoo > ### Title: Irregular Zoo -> Regular Zoo > ### Aliases: izoo2rzoo izoo2rzoo.default izoo2rzoo.zoo > ### Keywords: manip > > ### ** Examples > > ## > ## Example 1: Adding NA for February 29th to an existing zoo object > > # dummy values and dates (February 29th is not present !) > x <- 1:9 > dates <- c("1964-02-25", "1964-02-26", "1964-02-27", "1964-02-28", "1964-03-01", + "1964-03-02", "1964-03-03", "1964-03-04", "1964-03-05") > > # From 'character' to 'Date' class > dates <- as.Date(dates) > > ## From 'numeric' to 'zoo' class > ( x <- zoo(x, dates) ) # Feb 29th is still not present in 'x' 1964-02-25 1964-02-26 1964-02-27 1964-02-28 1964-03-01 1964-03-02 1964-03-03 1 2 3 4 5 6 7 1964-03-04 1964-03-05 8 9 > ## checking the length of 'x' > length(x) # 9 elements (there is no data for Feb 29th) [1] 9 > > ## Adding a missing value (NA in this case) for Feb 29th > ( y <- izoo2rzoo(x) ) 1964-02-25 1964-02-26 1964-02-27 1964-02-28 1964-02-29 1964-03-01 1964-03-02 1 2 3 4 NA 5 6 1964-03-03 1964-03-04 1964-03-05 7 8 9 > > ## checking the new length > length(y) # 1 element more than the original 'x' (thre is an NA value in Feb 29th) [1] 10 > > > ## > ## Example 2: Extending the original 'x' object from February 1st to the end of March, > # assigning 'NA' to the days in which 'x' do not have a value. > ( y <- izoo2rzoo(x, from="1964-02-01", to="1964-03-31") ) 1964-02-01 1964-02-02 1964-02-03 1964-02-04 1964-02-05 1964-02-06 1964-02-07 NA NA NA NA NA NA NA 1964-02-08 1964-02-09 1964-02-10 1964-02-11 1964-02-12 1964-02-13 1964-02-14 NA NA NA NA NA NA NA 1964-02-15 1964-02-16 1964-02-17 1964-02-18 1964-02-19 1964-02-20 1964-02-21 NA NA NA NA NA NA NA 1964-02-22 1964-02-23 1964-02-24 1964-02-25 1964-02-26 1964-02-27 1964-02-28 NA NA NA 1 2 3 4 1964-02-29 1964-03-01 1964-03-02 1964-03-03 1964-03-04 1964-03-05 1964-03-06 NA 5 6 7 8 9 NA 1964-03-07 1964-03-08 1964-03-09 1964-03-10 1964-03-11 1964-03-12 1964-03-13 NA NA NA NA NA NA NA 1964-03-14 1964-03-15 1964-03-16 1964-03-17 1964-03-18 1964-03-19 1964-03-20 NA NA NA NA NA NA NA 1964-03-21 1964-03-22 1964-03-23 1964-03-24 1964-03-25 1964-03-26 1964-03-27 NA NA NA NA NA NA NA 1964-03-28 1964-03-29 1964-03-30 1964-03-31 NA NA NA NA > > > ## > ## Example 3: Working with a zoo matrix with two identical 'x' time series, > ## from 1964-02-25 to 1964-03-05 > ( Y <- cbind(x,x) ) x x 1964-02-25 1 1 1964-02-26 2 2 1964-02-27 3 3 1964-02-28 4 4 1964-03-01 5 5 1964-03-02 6 6 1964-03-03 7 7 1964-03-04 8 8 1964-03-05 9 9 > > # Adding a missing value (NA in this case) for Feb 29th in all the columns of Y > ( rY <- izoo2rzoo(Y) ) x x 1964-02-25 1 1 1964-02-26 2 2 1964-02-27 3 3 1964-02-28 4 4 1964-02-29 NA NA 1964-03-01 5 5 1964-03-02 6 6 1964-03-03 7 7 1964-03-04 8 8 1964-03-05 9 9 > > > ## > ## Example 4: Working with hourly data, from 01:00 to 10:00 UTC on 12th December 2000 > dates <- ISOdatetime(year=2000, month=12, day=12, hour=1:10, min=0, sec=0, tz="UTC") > values <- 1:10 > x <- zoo(values, dates) > > # removing four values in 'x', from 02:00 to 05:00, i.e., they will not be present > # anymore in 'x' at all, not even NA !) > x <- x[-c(2:5)] > time(x) [1] "2000-12-12 01:00:00 UTC" "2000-12-12 06:00:00 UTC" [3] "2000-12-12 07:00:00 UTC" "2000-12-12 08:00:00 UTC" [5] "2000-12-12 09:00:00 UTC" "2000-12-12 10:00:00 UTC" > length(x) [1] 6 > > # Adding missing values (NA in this case) from 02:00 to 05:00 > y <- izoo2rzoo(x) > time(y) [1] "2000-12-12 01:00:00 UTC" "2000-12-12 02:00:00 UTC" [3] "2000-12-12 03:00:00 UTC" "2000-12-12 04:00:00 UTC" [5] "2000-12-12 05:00:00 UTC" "2000-12-12 06:00:00 UTC" [7] "2000-12-12 07:00:00 UTC" "2000-12-12 08:00:00 UTC" [9] "2000-12-12 09:00:00 UTC" "2000-12-12 10:00:00 UTC" > length(y) [1] 10 > > > ## > ## Example 5: Extending hourly data to a DateTime before 'start(x)', > ## specifying only the date. > ## Time of 'x' is in local time zone (tz="") instead of UTC > dt <- hip("2021-01-01 00:00:00", "2021-01-01 20:00:00", tz="") > x <- zoo(0:20, dt) > (y <- izoo2rzoo(x, from="2020-12-31") )# 00:00:00 is ommited 2020-12-31 00:00:00 2020-12-31 01:00:00 2020-12-31 02:00:00 2020-12-31 03:00:00 NA NA NA NA 2020-12-31 04:00:00 2020-12-31 05:00:00 2020-12-31 06:00:00 2020-12-31 07:00:00 NA NA NA NA 2020-12-31 08:00:00 2020-12-31 09:00:00 2020-12-31 10:00:00 2020-12-31 11:00:00 NA NA NA NA 2020-12-31 12:00:00 2020-12-31 13:00:00 2020-12-31 14:00:00 2020-12-31 15:00:00 NA NA NA NA 2020-12-31 16:00:00 2020-12-31 17:00:00 2020-12-31 18:00:00 2020-12-31 19:00:00 NA NA NA NA 2020-12-31 20:00:00 2020-12-31 21:00:00 2020-12-31 22:00:00 2020-12-31 23:00:00 NA NA NA NA 2021-01-01 00:00:00 2021-01-01 01:00:00 2021-01-01 02:00:00 2021-01-01 03:00:00 0 1 2 3 2021-01-01 04:00:00 2021-01-01 05:00:00 2021-01-01 06:00:00 2021-01-01 07:00:00 4 5 6 7 2021-01-01 08:00:00 2021-01-01 09:00:00 2021-01-01 10:00:00 2021-01-01 11:00:00 8 9 10 11 2021-01-01 12:00:00 2021-01-01 13:00:00 2021-01-01 14:00:00 2021-01-01 15:00:00 12 13 14 15 2021-01-01 16:00:00 2021-01-01 17:00:00 2021-01-01 18:00:00 2021-01-01 19:00:00 16 17 18 19 2021-01-01 20:00:00 20 > (time(y)) [1] "2020-12-31 00:00:00 CET" "2020-12-31 01:00:00 CET" [3] "2020-12-31 02:00:00 CET" "2020-12-31 03:00:00 CET" [5] "2020-12-31 04:00:00 CET" "2020-12-31 05:00:00 CET" [7] "2020-12-31 06:00:00 CET" "2020-12-31 07:00:00 CET" [9] "2020-12-31 08:00:00 CET" "2020-12-31 09:00:00 CET" [11] "2020-12-31 10:00:00 CET" "2020-12-31 11:00:00 CET" [13] "2020-12-31 12:00:00 CET" "2020-12-31 13:00:00 CET" [15] "2020-12-31 14:00:00 CET" "2020-12-31 15:00:00 CET" [17] "2020-12-31 16:00:00 CET" "2020-12-31 17:00:00 CET" [19] "2020-12-31 18:00:00 CET" "2020-12-31 19:00:00 CET" [21] "2020-12-31 20:00:00 CET" "2020-12-31 21:00:00 CET" [23] "2020-12-31 22:00:00 CET" "2020-12-31 23:00:00 CET" [25] "2021-01-01 00:00:00 CET" "2021-01-01 01:00:00 CET" [27] "2021-01-01 02:00:00 CET" "2021-01-01 03:00:00 CET" [29] "2021-01-01 04:00:00 CET" "2021-01-01 05:00:00 CET" [31] "2021-01-01 06:00:00 CET" "2021-01-01 07:00:00 CET" [33] "2021-01-01 08:00:00 CET" "2021-01-01 09:00:00 CET" [35] "2021-01-01 10:00:00 CET" "2021-01-01 11:00:00 CET" [37] "2021-01-01 12:00:00 CET" "2021-01-01 13:00:00 CET" [39] "2021-01-01 14:00:00 CET" "2021-01-01 15:00:00 CET" [41] "2021-01-01 16:00:00 CET" "2021-01-01 17:00:00 CET" [43] "2021-01-01 18:00:00 CET" "2021-01-01 19:00:00 CET" [45] "2021-01-01 20:00:00 CET" > > > ## > ## Example 6: Extending hourly data to a DateTime before 'start(x)', > ## specifying date and time. > ## Time of 'x' is in local time zone (tz="") instead of UTC > dt <- hip("2021-01-01 00:00:00", "2021-01-01 20:00:00", tz="") > x <- zoo(0:20, dt) > ( y <- izoo2rzoo(x, from="2020-12-31 20:00:00") ) 2020-12-31 20:00:00 2020-12-31 21:00:00 2020-12-31 22:00:00 2020-12-31 23:00:00 NA NA NA NA 2021-01-01 00:00:00 2021-01-01 01:00:00 2021-01-01 02:00:00 2021-01-01 03:00:00 0 1 2 3 2021-01-01 04:00:00 2021-01-01 05:00:00 2021-01-01 06:00:00 2021-01-01 07:00:00 4 5 6 7 2021-01-01 08:00:00 2021-01-01 09:00:00 2021-01-01 10:00:00 2021-01-01 11:00:00 8 9 10 11 2021-01-01 12:00:00 2021-01-01 13:00:00 2021-01-01 14:00:00 2021-01-01 15:00:00 12 13 14 15 2021-01-01 16:00:00 2021-01-01 17:00:00 2021-01-01 18:00:00 2021-01-01 19:00:00 16 17 18 19 2021-01-01 20:00:00 20 > > > ## > ## Example 7: Extending hourly data to a DateTime before 'start(x)', > ## specifying date and time, and forcing UTC to be the time zone. > ## Time of 'x' is in local time zone (tz="") instead of UTC, but > ## it will be treated as UTC by using the 'tz' argument > dt <- hip("2021-01-01 00:00:00", "2021-01-01 20:00:00", tz="") > x <- zoo(0:20, dt) > (time(x)) [1] "2021-01-01 00:00:00 CET" "2021-01-01 01:00:00 CET" [3] "2021-01-01 02:00:00 CET" "2021-01-01 03:00:00 CET" [5] "2021-01-01 04:00:00 CET" "2021-01-01 05:00:00 CET" [7] "2021-01-01 06:00:00 CET" "2021-01-01 07:00:00 CET" [9] "2021-01-01 08:00:00 CET" "2021-01-01 09:00:00 CET" [11] "2021-01-01 10:00:00 CET" "2021-01-01 11:00:00 CET" [13] "2021-01-01 12:00:00 CET" "2021-01-01 13:00:00 CET" [15] "2021-01-01 14:00:00 CET" "2021-01-01 15:00:00 CET" [17] "2021-01-01 16:00:00 CET" "2021-01-01 17:00:00 CET" [19] "2021-01-01 18:00:00 CET" "2021-01-01 19:00:00 CET" [21] "2021-01-01 20:00:00 CET" > (y <- izoo2rzoo(x, from="2020-12-31 20:00:00", tz="UTC") )# 00:00:00 is ommited 2020-12-31 20:00:00 2020-12-31 21:00:00 2020-12-31 22:00:00 2020-12-31 23:00:00 NA NA NA NA 2021-01-01 00:00:00 2021-01-01 01:00:00 2021-01-01 02:00:00 2021-01-01 03:00:00 0 1 2 3 2021-01-01 04:00:00 2021-01-01 05:00:00 2021-01-01 06:00:00 2021-01-01 07:00:00 4 5 6 7 2021-01-01 08:00:00 2021-01-01 09:00:00 2021-01-01 10:00:00 2021-01-01 11:00:00 8 9 10 11 2021-01-01 12:00:00 2021-01-01 13:00:00 2021-01-01 14:00:00 2021-01-01 15:00:00 12 13 14 15 2021-01-01 16:00:00 2021-01-01 17:00:00 2021-01-01 18:00:00 2021-01-01 19:00:00 16 17 18 19 2021-01-01 20:00:00 20 > (time(y)) [1] "2020-12-31 20:00:00 UTC" "2020-12-31 21:00:00 UTC" [3] "2020-12-31 22:00:00 UTC" "2020-12-31 23:00:00 UTC" [5] "2021-01-01 00:00:00 UTC" "2021-01-01 01:00:00 UTC" [7] "2021-01-01 02:00:00 UTC" "2021-01-01 03:00:00 UTC" [9] "2021-01-01 04:00:00 UTC" "2021-01-01 05:00:00 UTC" [11] "2021-01-01 06:00:00 UTC" "2021-01-01 07:00:00 UTC" [13] "2021-01-01 08:00:00 UTC" "2021-01-01 09:00:00 UTC" [15] "2021-01-01 10:00:00 UTC" "2021-01-01 11:00:00 UTC" [17] "2021-01-01 12:00:00 UTC" "2021-01-01 13:00:00 UTC" [19] "2021-01-01 14:00:00 UTC" "2021-01-01 15:00:00 UTC" [21] "2021-01-01 16:00:00 UTC" "2021-01-01 17:00:00 UTC" [23] "2021-01-01 18:00:00 UTC" "2021-01-01 19:00:00 UTC" [25] "2021-01-01 20:00:00 UTC" > > ## > ## Example 8: Extending hourly data to a DateTime after 'end(x)', > ## specifying date and time. > ## Time of 'x' is in local time zone (tz="") instead of UTC > dt <- hip("2021-01-01 00:00:00", "2021-01-01 20:00:00", tz="") > x <- zoo(0:20, dt) > ( y <- izoo2rzoo(x, to="2021-01-02 12:00:00") ) 2021-01-01 00:00:00 2021-01-01 01:00:00 2021-01-01 02:00:00 2021-01-01 03:00:00 0 1 2 3 2021-01-01 04:00:00 2021-01-01 05:00:00 2021-01-01 06:00:00 2021-01-01 07:00:00 4 5 6 7 2021-01-01 08:00:00 2021-01-01 09:00:00 2021-01-01 10:00:00 2021-01-01 11:00:00 8 9 10 11 2021-01-01 12:00:00 2021-01-01 13:00:00 2021-01-01 14:00:00 2021-01-01 15:00:00 12 13 14 15 2021-01-01 16:00:00 2021-01-01 17:00:00 2021-01-01 18:00:00 2021-01-01 19:00:00 16 17 18 19 2021-01-01 20:00:00 2021-01-01 21:00:00 2021-01-01 22:00:00 2021-01-01 23:00:00 20 NA NA NA 2021-01-02 00:00:00 2021-01-02 01:00:00 2021-01-02 02:00:00 2021-01-02 03:00:00 NA NA NA NA 2021-01-02 04:00:00 2021-01-02 05:00:00 2021-01-02 06:00:00 2021-01-02 07:00:00 NA NA NA NA 2021-01-02 08:00:00 2021-01-02 09:00:00 2021-01-02 10:00:00 2021-01-02 11:00:00 NA NA NA NA 2021-01-02 12:00:00 NA > > > ## > ## Example 9: Extending hourly data to a DateTime before 'start(x)'. > ## Note that the 'tz' argument can be ommited in the 'hip' function, > ## because by default it assumes UTC as time zone > dt <- hip("2021-01-01 00:00:00", "2021-01-01 20:00:00", tz="UTC") > x <- zoo(0:20, dt) > ( y <- izoo2rzoo(x, from="2020-12-31 20:00:00", tz="UTC") ) 2020-12-31 20:00:00 2020-12-31 21:00:00 2020-12-31 22:00:00 2020-12-31 23:00:00 NA NA NA NA 2021-01-01 00:00:00 2021-01-01 01:00:00 2021-01-01 02:00:00 2021-01-01 03:00:00 0 1 2 3 2021-01-01 04:00:00 2021-01-01 05:00:00 2021-01-01 06:00:00 2021-01-01 07:00:00 4 5 6 7 2021-01-01 08:00:00 2021-01-01 09:00:00 2021-01-01 10:00:00 2021-01-01 11:00:00 8 9 10 11 2021-01-01 12:00:00 2021-01-01 13:00:00 2021-01-01 14:00:00 2021-01-01 15:00:00 12 13 14 15 2021-01-01 16:00:00 2021-01-01 17:00:00 2021-01-01 18:00:00 2021-01-01 19:00:00 16 17 18 19 2021-01-01 20:00:00 20 > > > ## > ## Example 10: Extending hourly data to a date before 'start(x)'. However, hourly 'x' > ## values are given at HH:15:00 hours instead of HH:00:00 hours. > > ## Loading the time series of hourly streamflows for the station Karamea at Gorge > ## Time Zone for 'KarameaAtGorgeQts' data is 'UTC' (see ?KarameaAtGorgeQts), but it will > ## be tr4ated as 'NZ' (Zealand Standard Time) for this example > data(KarameaAtGorgeQts) > x <- KarameaAtGorgeQts > > # Subsetting 'x' to its first day only > # (01/Jan/1980 08:15:00 - 01/Jan/1980 23:15:00) > x <- window(x, end="1980-01-01 23:59:00") > > # Adding NA hourly data since 1979-12-31 21:15:00 > izoo2rzoo(x, from="1979-12-31 21:15:00", tz="NZ") Error in C_force_tz(to_posixct(time), tz, roll_dst) : CCTZ: Unrecognized output timezone: "NZ" Calls: izoo2rzoo ... -> .force_tz -> from_posixct -> C_force_tz Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [25s/25s] OK * checking PDF version of manual ... [5s/5s] OK * checking HTML version of manual ... [4s/4s] OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR