Running ‘testthat.R’ [3s/4s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tstools)
  Loading required package: zoo
  
  Attaching package: 'zoo'
  
  The following objects are masked from 'package:base':
  
      as.Date, as.Date.numeric
  
  > 
  > test_check("tstools")
  ── 1. Error: CSV transposed export works (@testWriteTimeseries.R#59)  ──────────
  cannot open the connection
  1: read.csv(csv_wide_transposed_name, sep = ",", stringsAsFactors = FALSE, header = FALSE) at testthat/testWriteTimeseries.R:59
  2: read.table(file = file, header = header, sep = sep, quote = quote, dec = dec, fill = fill, 
         comment.char = comment.char, ...)
  3: file(file, "rt")
  
  ── 2. Error: CSV long export works (@testWriteTimeseries.R#79)  ────────────────
  cannot open the connection
  1: read.csv(csv_long_name, sep = ",", stringsAsFactors = FALSE) at testthat/testWriteTimeseries.R:79
  2: read.table(file = file, header = header, sep = sep, quote = quote, dec = dec, fill = fill, 
         comment.char = comment.char, ...)
  3: file(file, "rt")
  
  ── 3. Error: XLSX wide export works (@testWriteTimeseries.R#102)  ──────────────
  File does not exist.
  1: openxlsx::read.xlsx(xlsx_wide_name) at testthat/testWriteTimeseries.R:102
  2: read.xlsx.default(xlsx_wide_name)
  3: stop("File does not exist.")
  
  ── 4. Error: XLSX transposed export works (@testWriteTimeseries.R#122)  ────────
  File does not exist.
  1: openxlsx::read.xlsx(xlsx_wide_transposed_name) at testthat/testWriteTimeseries.R:122
  2: read.xlsx.default(xlsx_wide_transposed_name)
  3: stop("File does not exist.")
  
  ── 5. Error: XLSX long export works (@testWriteTimeseries.R#141)  ──────────────
  File does not exist.
  1: openxlsx::read.xlsx(xlsx_long_name) at testthat/testWriteTimeseries.R:141
  2: read.xlsx.default(xlsx_long_name)
  3: stop("File does not exist.")
  
  ── 6. Error: RData export works (@testWriteTimeseries.R#162)  ──────────────────
  cannot open the connection
  1: load(rdata_read_name) at testthat/testWriteTimeseries.R:162
  2: readChar(con, 5L, useBytes = TRUE)
  
  ── 7. Error: Named RData export works (@testWriteTimeseries.R#180)  ────────────
  cannot open the connection
  1: load(rdata_read_name) at testthat/testWriteTimeseries.R:180
  2: readChar(con, 5L, useBytes = TRUE)
  
  ── 8. Error: JSON export works (@testWriteTimeseries.R#196)  ───────────────────
  cannot open the connection
  1: jsonlite::fromJSON(readLines(fid)) at testthat/testWriteTimeseries.R:196
  2: readLines(fid)
  
  ── 9. Error: Pretty JSON export works (@testWriteTimeseries.R#215)  ────────────
  cannot open the connection
  1: jsonlite::fromJSON(readLines(fid)) at testthat/testWriteTimeseries.R:215
  2: readLines(fid)
  
    adding: tmp/RtmpmC6bhf/test_ts_2019_01_01.json (deflated 82%)
  ── 10. Failure: Zipping works (@testWriteTimeseries.R#233)  ────────────────────
  file.exists(zip_read_name) isn't true.
  
  ── 11. Failure: Zipping works (@testWriteTimeseries.R#235)  ────────────────────
  file.exists(json_read_name) isn't true.
  
  ── 12. Error: Zipping works (@testWriteTimeseries.R#238)  ──────────────────────
  cannot open the connection
  1: jsonlite::fromJSON(readLines(fid)) at testthat/testWriteTimeseries.R:238
  2: readLines(fid)
  
  ── 13. Error: imports work (@testWriteTimeseries.R#253)  ───────────────────────
  File '/tmp/RtmpmC6bhf/test_ts_wide_transposed_2018_12_31.csv' does not exist or is non-readable. getwd()=='/home/hornik/tmp/R.check/r-release-gcc/Work/PKGS/tstools.Rcheck/tests/testthat'
  1: expect_equal(ts, read_ts(csv_wide_transposed_name)) at testthat/testWriteTimeseries.R:253
  2: quasi_label(enquo(expected), expected.label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: read_ts(csv_wide_transposed_name)
  5: read_ts.csv(file, sep, skip = skip)
  6: fread(file, sep = sep, stringsAsFactors = FALSE, colClasses = "numeric", skip = skip)
  7: stop("File '", file, "' does not exist or is non-readable. getwd()=='", getwd(), 
         "'")
  
  ── 14. Error: CSV transposed export works (@testWriteTimeseries.R#59)  ─────────
  cannot open the connection
  1: read.csv(csv_wide_transposed_name, sep = ",", stringsAsFactors = FALSE, header = FALSE) at testthat/testWriteTimeseries.R:59
  2: read.table(file = file, header = header, sep = sep, quote = quote, dec = dec, fill = fill, 
         comment.char = comment.char, ...)
  3: file(file, "rt")
  
  ── 15. Error: CSV long export works (@testWriteTimeseries.R#79)  ───────────────
  cannot open the connection
  1: read.csv(csv_long_name, sep = ",", stringsAsFactors = FALSE) at testthat/testWriteTimeseries.R:79
  2: read.table(file = file, header = header, sep = sep, quote = quote, dec = dec, fill = fill, 
         comment.char = comment.char, ...)
  3: file(file, "rt")
  
  ── 16. Error: XLSX wide export works (@testWriteTimeseries.R#102)  ─────────────
  File does not exist.
  1: openxlsx::read.xlsx(xlsx_wide_name) at testthat/testWriteTimeseries.R:102
  2: read.xlsx.default(xlsx_wide_name)
  3: stop("File does not exist.")
  
  ── 17. Error: XLSX transposed export works (@testWriteTimeseries.R#122)  ───────
  File does not exist.
  1: openxlsx::read.xlsx(xlsx_wide_transposed_name) at testthat/testWriteTimeseries.R:122
  2: read.xlsx.default(xlsx_wide_transposed_name)
  3: stop("File does not exist.")
  
  ── 18. Error: XLSX long export works (@testWriteTimeseries.R#141)  ─────────────
  File does not exist.
  1: openxlsx::read.xlsx(xlsx_long_name) at testthat/testWriteTimeseries.R:141
  2: read.xlsx.default(xlsx_long_name)
  3: stop("File does not exist.")
  
  ── 19. Error: RData export works (@testWriteTimeseries.R#162)  ─────────────────
  cannot open the connection
  1: load(rdata_read_name) at testthat/testWriteTimeseries.R:162
  2: readChar(con, 5L, useBytes = TRUE)
  
  ── 20. Error: Named RData export works (@testWriteTimeseries.R#180)  ───────────
  cannot open the connection
  1: load(rdata_read_name) at testthat/testWriteTimeseries.R:180
  2: readChar(con, 5L, useBytes = TRUE)
  
  ── 21. Error: JSON export works (@testWriteTimeseries.R#196)  ──────────────────
  cannot open the connection
  1: jsonlite::fromJSON(readLines(fid)) at testthat/testWriteTimeseries.R:196
  2: readLines(fid)
  
  ── 22. Error: Pretty JSON export works (@testWriteTimeseries.R#215)  ───────────
  cannot open the connection
  1: jsonlite::fromJSON(readLines(fid)) at testthat/testWriteTimeseries.R:215
  2: readLines(fid)
  
    adding: tmp/RtmpmC6bhf/test_ts_2019_01_01.json (deflated 82%)
  ── 23. Failure: Zipping works (@testWriteTimeseries.R#233)  ────────────────────
  file.exists(zip_read_name) isn't true.
  
  ── 24. Failure: Zipping works (@testWriteTimeseries.R#235)  ────────────────────
  file.exists(json_read_name) isn't true.
  
  ── 25. Error: Zipping works (@testWriteTimeseries.R#238)  ──────────────────────
  cannot open the connection
  1: jsonlite::fromJSON(readLines(fid)) at testthat/testWriteTimeseries.R:238
  2: readLines(fid)
  
  ── 26. Error: imports work (@testWriteTimeseries.R#253)  ───────────────────────
  File '/tmp/RtmpmC6bhf/test_ts_wide_transposed_2018_12_31.csv' does not exist or is non-readable. getwd()=='/home/hornik/tmp/R.check/r-release-gcc/Work/PKGS/tstools.Rcheck/tests/testthat'
  1: expect_equal(ts, read_ts(csv_wide_transposed_name)) at testthat/testWriteTimeseries.R:253
  2: quasi_label(enquo(expected), expected.label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: read_ts(csv_wide_transposed_name)
  5: read_ts.csv(file, sep, skip = skip)
  6: fread(file, sep = sep, stringsAsFactors = FALSE, colClasses = "numeric", skip = skip)
  7: stop("File '", file, "' does not exist or is non-readable. getwd()=='", getwd(), 
         "'")
  
  ── 27. Error: CSV transposed export works (@testWriteTimeseries.R#59)  ─────────
  cannot open the connection
  1: read.csv(csv_wide_transposed_name, sep = ",", stringsAsFactors = FALSE, header = FALSE) at testthat/testWriteTimeseries.R:59
  2: read.table(file = file, header = header, sep = sep, quote = quote, dec = dec, fill = fill, 
         comment.char = comment.char, ...)
  3: file(file, "rt")
  
  ── 28. Error: CSV long export works (@testWriteTimeseries.R#79)  ───────────────
  cannot open the connection
  1: read.csv(csv_long_name, sep = ",", stringsAsFactors = FALSE) at testthat/testWriteTimeseries.R:79
  2: read.table(file = file, header = header, sep = sep, quote = quote, dec = dec, fill = fill, 
         comment.char = comment.char, ...)
  3: file(file, "rt")
  
  ── 29. Error: XLSX wide export works (@testWriteTimeseries.R#102)  ─────────────
  File does not exist.
  1: openxlsx::read.xlsx(xlsx_wide_name) at testthat/testWriteTimeseries.R:102
  2: read.xlsx.default(xlsx_wide_name)
  3: stop("File does not exist.")
  
  ── 30. Error: XLSX transposed export works (@testWriteTimeseries.R#122)  ───────
  File does not exist.
  1: openxlsx::read.xlsx(xlsx_wide_transposed_name) at testthat/testWriteTimeseries.R:122
  2: read.xlsx.default(xlsx_wide_transposed_name)
  3: stop("File does not exist.")
  
  ── 31. Error: XLSX long export works (@testWriteTimeseries.R#141)  ─────────────
  File does not exist.
  1: openxlsx::read.xlsx(xlsx_long_name) at testthat/testWriteTimeseries.R:141
  2: read.xlsx.default(xlsx_long_name)
  3: stop("File does not exist.")
  
  ── 32. Error: RData export works (@testWriteTimeseries.R#162)  ─────────────────
  cannot open the connection
  1: load(rdata_read_name) at testthat/testWriteTimeseries.R:162
  2: readChar(con, 5L, useBytes = TRUE)
  
  ── 33. Error: Named RData export works (@testWriteTimeseries.R#180)  ───────────
  cannot open the connection
  1: load(rdata_read_name) at testthat/testWriteTimeseries.R:180
  2: readChar(con, 5L, useBytes = TRUE)
  
  ── 34. Error: JSON export works (@testWriteTimeseries.R#196)  ──────────────────
  cannot open the connection
  1: jsonlite::fromJSON(readLines(fid)) at testthat/testWriteTimeseries.R:196
  2: readLines(fid)
  
  ── 35. Error: Pretty JSON export works (@testWriteTimeseries.R#215)  ───────────
  cannot open the connection
  1: jsonlite::fromJSON(readLines(fid)) at testthat/testWriteTimeseries.R:215
  2: readLines(fid)
  
    adding: tmp/RtmpmC6bhf/test_ts_2019_01_01.json (deflated 82%)
  ── 36. Failure: Zipping works (@testWriteTimeseries.R#233)  ────────────────────
  file.exists(zip_read_name) isn't true.
  
  ── 37. Failure: Zipping works (@testWriteTimeseries.R#235)  ────────────────────
  file.exists(json_read_name) isn't true.
  
  ── 38. Error: Zipping works (@testWriteTimeseries.R#238)  ──────────────────────
  cannot open the connection
  1: jsonlite::fromJSON(readLines(fid)) at testthat/testWriteTimeseries.R:238
  2: readLines(fid)
  
  ── 39. Error: imports work (@testWriteTimeseries.R#253)  ───────────────────────
  File '/tmp/RtmpmC6bhf/test_ts_wide_transposed_2018_12_31.csv' does not exist or is non-readable. getwd()=='/home/hornik/tmp/R.check/r-release-gcc/Work/PKGS/tstools.Rcheck/tests/testthat'
  1: expect_equal(ts, read_ts(csv_wide_transposed_name)) at testthat/testWriteTimeseries.R:253
  2: quasi_label(enquo(expected), expected.label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: read_ts(csv_wide_transposed_name)
  5: read_ts.csv(file, sep, skip = skip)
  6: fread(file, sep = sep, stringsAsFactors = FALSE, colClasses = "numeric", skip = skip)
  7: stop("File '", file, "' does not exist or is non-readable. getwd()=='", getwd(), 
         "'")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 39 SKIPPED: 0 FAILED: 39
  1. Error: CSV transposed export works (@testWriteTimeseries.R#59) 
  2. Error: CSV long export works (@testWriteTimeseries.R#79) 
  3. Error: XLSX wide export works (@testWriteTimeseries.R#102) 
  4. Error: XLSX transposed export works (@testWriteTimeseries.R#122) 
  5. Error: XLSX long export works (@testWriteTimeseries.R#141) 
  6. Error: RData export works (@testWriteTimeseries.R#162) 
  7. Error: Named RData export works (@testWriteTimeseries.R#180) 
  8. Error: JSON export works (@testWriteTimeseries.R#196) 
  9. Error: Pretty JSON export works (@testWriteTimeseries.R#215) 
  1. ...
  
  Error: testthat unit tests failed
  In addition: Warning messages:
  1: In match.fun(FUN) :
    closing unused connection 5 (/tmp/RtmpmC6bhf/test_ts_2018_12_31.json)
  2: In match.fun(FUN) :
    closing unused connection 4 (/tmp/RtmpmC6bhf/test_ts_2018_12_31.json)
  3: closing unused connection 6 (/tmp/RtmpmC6bhf/test_ts_2018_12_31.json) 
  4: closing unused connection 5 (/tmp/RtmpmC6bhf/test_ts_2018_12_31.json) 
  5: closing unused connection 4 (/tmp/RtmpmC6bhf/test_ts_2018_12_31.json) 
  Execution halted