Running ‘testthat.R’ [30s/38s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(sjmisc)
  Install package "strengejacke" from GitHub (`devtools::install_github("strengejacke/strengejacke")`) to load all sj-packages at once!
  > 
  > test_check("sjmisc")
  
   iter imp variable
    1   1  SpeciesPackage nnet needed. Install from CRAN? (Yes/no/cancel) 
  trying URL 'https://cloud.r-project.org/src/contrib/nnet_7.3-16.tar.gz'
  Content type 'application/x-gzip' length 29097 bytes (28 KB)
  ==================================================
  downloaded 28 KB
  
  * installing *source* package ‘nnet’ ...
  ** package ‘nnet’ successfully unpacked and MD5 sums checked
  ** using staged installation
  ** libs
  /home/ripley/developerstudio12.6/bin/cc -xc99 -I"/home/ripley/R/cc/include" -DNDEBUG   -I/usr/local/include  -KPIC  -O -xlibmieee -xlibmil -xtarget=native -xcache=generic -nofstore  -c nnet.c -o nnet.o
  /home/ripley/developerstudio12.6/bin/cc -xc99 -G -L/usr/local/lib -o nnet.so nnet.o
  installing to /tmp/RtmpcPaGrc/RLIBS_48c5687223e/00LOCK-nnet/00new/nnet/libs
  ** R
  ** inst
  ** byte-compile and prepare package for lazy loading
  ** help
  *** installing help indices
  ** building package indices
  ** testing if installed package can be loaded from temporary location
  ** checking absolute paths in shared objects and dynamic libraries
  ** testing if installed package can be loaded from final location
  ** testing if installed package keeps a record of temporary installation path
  * DONE (nnet)
  
  The downloaded source packages are in
  	'/tmp/RtmpcPaGrc/working_dir/RtmppBaaSw/downloaded_packages'
  
    1   2  Species
    1   3  Species
    1   4  Species
    1   5  Species
    2   1  Species
    2   2  Species
    2   3  Species
    2   4  Species
    2   5  Species
    3   1  Species
    3   2  Species
    3   3  Species
    3   4  Species
    3   5  Species
    4   1  Species
    4   2  Species
    4   3  Species
    4   4  Species
    4   5  Species
    5   1  Species
    5   2  Species
    5   3  Species
    5   4  Species
    5   5  Species
  One or more of the old values are recoded into identical new values.
  Please check if you correctly specified the recode-pattern,
  else separate multiple values with comma, e.g. rec="a,b,c=1; d,e,f=2".
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (3)
  • empty test (7)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-frq_whitespace.R:10:1): (code run outside of `test_that()`) ─────
  Error: Package 'haven' required for this function. Please install it.
  Backtrace:
      █
   1. ├─sjmisc::rec(dat, y.char, suffix = "_r", as.num = TRUE, rec = "Category1 = 1 [Label 1]; Category2 = 2 [Label 2]; Category3 = 3 [Label 3];") test-frq_whitespace.R:10:0
   2. └─sjmisc:::rec.default(...)
   3.   └─sjmisc:::rec_core_fun(...)
   4.     └─sjmisc:::rec_helper(...)
   5.       ├─base::suppressWarnings(sjlabelled::set_labels(x = new_var, labels = val_lab))
   6.       │ └─base::withCallingHandlers(...)
   7.       └─sjlabelled::set_labels(x = new_var, labels = val_lab)
   8.         └─sjlabelled:::set_labels_helper(...)
  ── Error (test-rec.R:12:3): rec ────────────────────────────────────────────────
  Error: Package 'haven' required for this function. Please install it.
  Backtrace:
       █
    1. ├─testthat::expect_equal(...) test-rec.R:12:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::unique(rec(efc$c82cop1, rec = "1,2=1; NA=9; else=copy"))
    5. ├─sjmisc::rec(efc$c82cop1, rec = "1,2=1; NA=9; else=copy")
    6. └─sjmisc:::rec.default(efc$c82cop1, rec = "1,2=1; NA=9; else=copy")
    7.   └─sjmisc:::rec_core_fun(...)
    8.     └─sjmisc:::rec_helper(...)
    9.       ├─sjlabelled::get_na(x)
   10.       └─sjlabelled:::get_na.default(x)
   11.         └─sjlabelled:::get_na_helper(x, as.tag)
  ── Error (test-rec.R:39:3): rec rev ────────────────────────────────────────────
  Error: Package 'haven' required for this function. Please install it.
  Backtrace:
      █
   1. └─sjlabelled::set_labels(x, labels = c(`1` = "a", `2` = "b", `3` = "c")) test-rec.R:39:2
   2.   └─sjlabelled:::set_labels_helper(...)
  ── Error (test-reflvl.R:8:3): ref_lvl ──────────────────────────────────────────
  Error: Package 'haven' required for this function. Please install it.
  Backtrace:
      █
   1. ├─sjlabelled::to_factor(efc$e42dep) test-reflvl.R:8:2
   2. └─sjlabelled:::as_factor.default(efc$e42dep)
   3.   └─sjlabelled:::to_fac_helper(x, add.non.labelled)
   4.     ├─base::suppressMessages(...)
   5.     │ └─base::withCallingHandlers(...)
   6.     └─sjlabelled::set_labels(...)
   7.       └─sjlabelled:::set_labels_helper(...)
  ── Error (test-setna.R:8:3): set_na ────────────────────────────────────────────
  Error: Package 'haven' required for this function. Please install it.
  Backtrace:
      █
   1. ├─testthat::expect_equal(...) test-setna.R:8:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─base::nlevels(set_na(x, na = "b", as.tag = TRUE))
   5. │ └─base::levels(x)
   6. └─sjlabelled::set_na(x, na = "b", as.tag = TRUE)
   7.   └─sjlabelled:::set_na_helper(...)
  ── Error (test-setna.R:14:3): set_na ───────────────────────────────────────────
  Error: Package 'haven' required for this function. Please install it.
  Backtrace:
      █
   1. ├─testthat::expect_true(...) test-setna.R:14:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─sjlabelled::set_na(x, na = 1, as.tag = FALSE)
   5.   └─sjlabelled:::set_na_helper(...)
  
  [ FAIL 6 | WARN 3 | SKIP 10 | PASS 134 ]
  Error: Test failures
  Execution halted