* using log directory 'd:/Rcompile/CRANpkg/local/3.4/tsbox.Rcheck' * using R version 3.4.4 (2018-03-15) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'tsbox/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'tsbox' version '0.1.0' * 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 'tsbox' 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 ... [9s] OK * checking Rd files ... 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 installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [7s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [42s] ERROR Running 'testthat.R' [41s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(tsbox) > > test_check("tsbox") "blabla" -- 1. Failure: works with non-heuristic frequencies (#106) (@test_ts_span.R#56) time(ts_span(EuStockMarkets, end = 5))[1:5] not equal to time(EuStockMarkets)[1:5]. 4/5 mismatches (average diff: 5.9e-06) [2] 1992 - 1992 == 2.95e-06 [3] 1992 - 1992 == 5.90e-06 [4] 1992 - 1992 == 8.84e-06 [5] NA - 1992 == NA -- 2. Error: works with non-heuristic frequencies (#106) (@test_ts_span.R#61) - span contains no data; select different 'start' or 'end' 1: expect_equal(time(ts_span(EuStockMarkets, end = 1))[1], time(EuStockMarkets)[1]) at testthat/test_ts_span.R:61 2: quasi_label(enquo(object), label, arg = "object") 3: eval_bare(get_expr(quo), get_env(quo)) 4: time(ts_span(EuStockMarkets, end = 1)) 5: ts_span(EuStockMarkets, end = 1) 6: stop("span contains no data; select different 'start' or 'end'", call. = FALSE) == testthat results =========================================================== OK: 387 SKIPPED: 11 WARNINGS: 0 FAILED: 2 1. Failure: works with non-heuristic frequencies (#106) (@test_ts_span.R#56) 2. Error: works with non-heuristic frequencies (#106) (@test_ts_span.R#61) Error: testthat unit tests failed Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes in 'inst/doc' ... OK * checking re-building of vignette outputs ... [6s] OK * checking PDF version of manual ... OK * DONE Status: 1 ERROR