Running ‘testthat.R’ [2s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(labelled)
  > test_check("labelled")
  ── 1. Failure: labelled return an object of class haven_labelled (@test-labelled
  class(x) not equal to "haven_labelled".
  Lengths differ: 3 is not 1
  
  ── 2. Failure: dplyr::recode could be applied to numeric labelled vector (@test-
  `x` not equal to labelled(c(1L, 2L, 2L), c(yes = 1, no = 2)).
  Attributes: < Component "class": Lengths (1, 3) differ (string compare on first 1) >
  
  ── 3. Failure: dplyr::recode could be applied to character labelled vector (@tes
  `x` not equal to labelled(c("a", "b", "b"), c(yes = "a", no = "b")).
  Attributes: < Component "class": Lengths (1, 3) differ (string compare on first 1) >
  
  ── 4. Failure: update_labelled update previous haven's labelled objects but not 
  class(update_labelled(vhaven)) not equal to "haven_labelled".
  Lengths differ: 3 is not 1
  
  ── 5. Failure: update_labelled update previous haven's labelled objects but not 
  class(update_labelled(df)$vhaven) not equal to "haven_labelled".
  Lengths differ: 3 is not 1
  
  ── 6. Failure: update_labelled update to haven_labelled_spss if there are na val
  class(update_labelled(v1)) not equal to c("haven_labelled_spss", "haven_labelled").
  Lengths differ: 4 is not 2
  
  ── 7. Failure: update_labelled update to haven_labelled_spss if there are na val
  class(update_labelled(v1)) not equal to c("haven_labelled_spss", "haven_labelled").
  Lengths differ: 4 is not 2
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 76 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 7 ]
  1. Failure: labelled return an object of class haven_labelled (@test-labelled.r#53) 
  2. Failure: dplyr::recode could be applied to numeric labelled vector (@test-labelled.r#268) 
  3. Failure: dplyr::recode could be applied to character labelled vector (@test-labelled.r#273) 
  4. Failure: update_labelled update previous haven's labelled objects but not Hmisc's labelled objects (@test-labelled.r#282) 
  5. Failure: update_labelled update previous haven's labelled objects but not Hmisc's labelled objects (@test-labelled.r#286) 
  6. Failure: update_labelled update to haven_labelled_spss if there are na values (@test-labelled.r#296) 
  7. Failure: update_labelled update to haven_labelled_spss if there are na values (@test-labelled.r#297) 
  
  Error: testthat unit tests failed
  Execution halted