Running ‘testthat.R’ [11s/11s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(haven)
  > 
  > test_check("haven")
  1. Failure: datetime values correctly imported (offset) (@test-read-sav.R#42) --
  df$date[1] not equal to as.Date("2014-09-22d").
  Mean relative difference: 1.1155
  
  
  2. Failure: datetime values correctly imported (offset) (@test-read-sav.R#43) --
  df$date.posix[2] not equal to as.POSIXct("2014-09-23 15:59:20", tz = "UTC").
  1/1 mismatches
  [1] 1582-10-14 - 2014-09-23 15:59:20 == -157765 days
  
  
  3. Failure: datetime values correctly imported (offset) (@test-read-sav.R#44) --
  as.integer(df$time[1]) not equal to 43870.
  1/1 mismatches
  [1] 0 - 43870 == -43870
  
  
  4. Error: tagged double missings are read correctly (@test-read-stata.R#34) ----
  Failed to parse /home/ripley/R/packages/tests32/haven.Rcheck/tests/testthat/tagged-na-double.dta: Invalid file, or file has unsupported features.
  1: read_dta(test_path("tagged-na-double.dta")) at testthat/test-read-stata.R:34
  2: df_parse_dta_file(spec, encoding)
  
  5. Error: tagged integer missings are read correctly (@test-read-stata.R#42) ---
  Failed to parse /home/ripley/R/packages/tests32/haven.Rcheck/tests/testthat/tagged-na-int.dta: Invalid file, or file has unsupported features.
  1: read_dta(test_path("tagged-na-int.dta")) at testthat/test-read-stata.R:42
  2: df_parse_dta_file(spec, encoding)
  
  6. Error: file label and notes stored as attributes (@test-read-stata.R#50) ----
  Failed to parse /home/ripley/R/packages/tests32/haven.Rcheck/tests/testthat/notes.dta: The provided note is too long for the file format.
  1: read_dta(test_path("notes.dta")) at testthat/test-read-stata.R:50
  2: df_parse_dta_file(spec, encoding)
  
  testthat results ================================================================
  OK: 144 SKIPPED: 0 FAILED: 6
  1. Failure: datetime values correctly imported (offset) (@test-read-sav.R#42) 
  2. Failure: datetime values correctly imported (offset) (@test-read-sav.R#43) 
  3. Failure: datetime values correctly imported (offset) (@test-read-sav.R#44) 
  4. Error: tagged double missings are read correctly (@test-read-stata.R#34) 
  5. Error: tagged integer missings are read correctly (@test-read-stata.R#42) 
  6. Error: file label and notes stored as attributes (@test-read-stata.R#50) 
  
  Error: testthat unit tests failed
  Execution halted