* using log directory 'd:/Rcompile/CRANpkg/local/4.1/hyd1d.Rcheck' * using R version 4.1.3 (2022-03-10) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'hyd1d/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'hyd1d' version '0.4.4' * package encoding: UTF-8 * 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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'hyd1d' can be installed ... OK * checking installed package size ... OK * checking package directory ... 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 R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... 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 ... [20s] OK * checking Rd files ... [5s] OK * checking Rd metadata ... 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 ... OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [9s] ERROR Running examples in 'hyd1d-Ex.R' failed The error most likely occurred in: > ### Name: getPegelonlineW > ### Title: Get W from pegelonline.wsv.de for the specified gauging station > ### and time > ### Aliases: getPegelonlineW > > ### ** Examples > > getPegelonlineW(gauging_station = "DESSAU", time = Sys.time() - 3600) Warning in utils::download.file(url, tf, method = method, quiet = TRUE) : InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.' Error in value[[3L]](cond) : It was not possible to access gauging data from https://pegelonline.wsv.de Please try again later. Error in utils::download.file(url, tf, method = method, quiet = TRUE): cannot open URL 'https://www.pegelonline.wsv.de/webservices/rest-api/v2/stations/1edc5fa4-88af-47f5-95a4-0e77a06fe8b1/W/measurements.json?start=2023-04-20T00:00%2B01:00&end=2023-04-20T20:20%2B01:00' Calls: getPegelonlineW ... tryCatch -> tryCatchList -> tryCatchOne -> Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [51s] ERROR Running 'testthat.R' [50s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(hyd1d) 'df.gauging_data' locally stored at D:\temp\RtmpMBE0zW/df.gauging_data_latest.RDS was last downloaded 2023-04-20 20:20:54 CEST > > test_check("hyd1d") [ FAIL 4 | WARN 7 | SKIP 0 | PASS 117 ] == Failed tests ================================================================ -- Error ('test_getW.R:47:5'): getPegelonlineW --------------------------------- Error in `value[[3L]](cond)`: It was not possible to access gauging data from https://pegelonline.wsv.de Please try again later. Error in utils::download.file(url, tf, method = method, quiet = TRUE): cannot open URL 'https://www.pegelonline.wsv.de/webservices/rest-api/v2/stations/1edc5fa4-88af-47f5-95a4-0e77a06fe8b1/W/measurements.json?start=2023-04-20T00:00%2B01:00&end=2023-04-20T20:20%2B01:00' Backtrace: x 1. +-testthat::expect_equal(...) at test_getW.R:47:4 2. | \-testthat::quasi_label(enquo(object), label, arg = "object") 3. | \-rlang::eval_bare(expr, quo_get_env(quo)) 4. \-hyd1d::getPegelonlineW(gauging_station = "DESSAU", time = times) 5. \-base::tryCatch(...) 6. \-base (local) tryCatchList(expr, classes, parentenv, handlers) 7. \-base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 8. \-value[[3L]](cond) -- Error ('test_waterLevelPegelonline.R:9:5'): waterLevelPegelonline: Dessau --- Error in ``$<-.data.frame`(`*tmp*`, "n_wls_below_w_up", value = 0L)`: replacement has 1 row, data has 0 Backtrace: x 1. \-hyd1d::waterLevelPegelonline(wldf, shiny = TRUE) at test_waterLevelPegelonline.R:9:4 2. +-base::`$<-`(`*tmp*`, "n_wls_below_w_up", value = ``) 3. \-base::`$<-.data.frame`(`*tmp*`, "n_wls_below_w_up", value = ``) -- Error ('test_waterLevelPegelonline.R:28:5'): waterLevelPegelonline: Schöna -- Error in ``$<-.data.frame`(`*tmp*`, "n_wls_below_w_do", value = c(NA, 0L ))`: replacement has 2 rows, data has 1 Backtrace: x 1. \-hyd1d::waterLevelPegelonline(wldf, shiny = TRUE) at test_waterLevelPegelonline.R:28:4 2. +-base::`$<-`(`*tmp*`, "n_wls_below_w_do", value = ``) 3. \-base::`$<-.data.frame`(`*tmp*`, "n_wls_below_w_do", value = ``) -- Error ('test_waterLevelPegelonline.R:41:5'): waterLevelPegelonline: Geesthacht -- Error in ``$<-.data.frame`(`*tmp*`, "n_wls_below_w_do", value = c(NA, 0L ))`: replacement has 2 rows, data has 1 Backtrace: x 1. \-hyd1d::waterLevelPegelonline(wldf, shiny = TRUE) at test_waterLevelPegelonline.R:41:4 2. +-base::`$<-`(`*tmp*`, "n_wls_below_w_do", value = ``) 3. \-base::`$<-.data.frame`(`*tmp*`, "n_wls_below_w_do", value = ``) [ FAIL 4 | WARN 7 | SKIP 0 | PASS 117 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes in 'inst/doc' ... OK * checking re-building of vignette outputs ... [74s] WARNING Error(s) in re-building vignettes: --- re-building 'hyd1d.Rmd' using rmarkdown Quitting from lines 361-391 (hyd1d.Rmd) Error: processing vignette 'hyd1d.Rmd' failed with diagnostics: replacement has 1 row, data has 0 --- failed re-building 'hyd1d.Rmd' --- re-building 'vignette_DE.Rmd' using rmarkdown Quitting from lines 1166-1191 (vignette_DE.Rmd) Error: processing vignette 'vignette_DE.Rmd' failed with diagnostics: replacement has 1 row, data has 0 --- failed re-building 'vignette_DE.Rmd' SUMMARY: processing the following files failed: 'hyd1d.Rmd' 'vignette_DE.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... OK * DONE Status: 2 ERRORs, 1 WARNING