Running ‘testthat.R’ [24s/30s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library("testthat")
  > library("HydeNet")
  Loading required package: nnet
  > 
  > test_check("HydeNet")
  Compiling model graph
     Resolving undeclared variables
     Allocating nodes
  Graph information:
     Observed stochastic nodes: 0
     Unobserved stochastic nodes: 7
     Total graph size: 98
  
  Initializing model
  
  Compiling model graph
     Resolving undeclared variables
     Allocating nodes
  Graph information:
     Observed stochastic nodes: 0
     Unobserved stochastic nodes: 7
     Total graph size: 98
  
  Initializing model
  
  Compiling model graph
     Resolving undeclared variables
     Allocating nodes
  Graph information:
     Observed stochastic nodes: 2
     Unobserved stochastic nodes: 5
     Total graph size: 88
  
  Initializing model
  
  Compiling model graph
     Resolving undeclared variables
     Allocating nodes
  Graph information:
     Observed stochastic nodes: 2
     Unobserved stochastic nodes: 5
     Total graph size: 88
  
  Initializing model
  
  Compiling model graph
     Resolving undeclared variables
     Allocating nodes
  Graph information:
     Observed stochastic nodes: 2
     Unobserved stochastic nodes: 5
     Total graph size: 88
  
  Initializing model
  
  Compiling model graph
     Resolving undeclared variables
     Allocating nodes
  Graph information:
     Observed stochastic nodes: 2
     Unobserved stochastic nodes: 5
     Total graph size: 88
  
  Initializing model
  
  Compiling model graph
     Resolving undeclared variables
     Allocating nodes
  Graph information:
     Observed stochastic nodes: 0
     Unobserved stochastic nodes: 7
     Total graph size: 98
  
  Initializing model
  
  1. Error: cpt.list (@test-cpt.R#12) --------------------------------------------
  Columns `di3`, `di1`, `di2` must be 1d atomic vectors or lists
  1: expect_silent(cpt(list(y = "di3", x = c("di1", "di2")), data = df)) at testthat/test-cpt.R:12
  2: evaluate_promise(object)
  3: with_sink(temp, withCallingHandlers(withVisible(code), warning = handle_warning, 
         message = handle_message))
  4: withCallingHandlers(withVisible(code), warning = handle_warning, message = handle_message)
  5: withVisible(code)
  6: cpt(list(y = "di3", x = c("di1", "di2")), data = df)
  7: cpt.list(list(y = "di3", x = c("di1", "di2")), data = df)
  8: cpt_workhorse(variables = variables, dependentVar = dependentVar, independentVars = independentVars, 
         data = data, wt = wt, ...)
  9: dplyr::bind_cols(dplyr::tbl_df(data[, vars]), dplyr::tbl_df(data.frame(wt = wt)))
  10: list_or_dots(...)
  11: dplyr::tbl_df(data[, vars])
  12: as_data_frame(data)
  13: as_data_frame.data.frame(data)
  14: list_to_tibble(x, validate, raw_rownames(x))
  15: check_tibble(x)
  16: invalid_df("must be [a] 1d atomic vector(s) or [a] list(s)", x, !is_1d)
  17: stopc(pluralise_msg("Column(s) ", vars), " ", pluralise(problem, vars))
  18: abort(paste0(...))
  
  # weights:  12 (6 variable)
  initial  value 35.155593 
  iter  10 value 14.156582
  iter  20 value 14.031881
  iter  30 value 14.025659
  iter  40 value 14.021414
  iter  50 value 14.019824
  iter  60 value 14.019278
  iter  70 value 14.018601
  iter  80 value 14.018282
  iter  80 value 14.018282
  iter  90 value 14.017126
  final  value 14.015374 
  converged
  Compiling model graph
     Resolving undeclared variables
     Allocating nodes
  Graph information:
     Observed stochastic nodes: 1
     Unobserved stochastic nodes: 6
     Total graph size: 82
  
  Initializing model
  
  # weights:  12 (6 variable)
  initial  value 35.155593 
  iter  10 value 14.156582
  iter  20 value 14.031881
  iter  30 value 14.025659
  iter  40 value 14.021414
  iter  50 value 14.019824
  iter  60 value 14.019278
  iter  70 value 14.018601
  iter  80 value 14.018282
  iter  80 value 14.018282
  iter  90 value 14.017126
  final  value 14.015374 
  converged
  testthat results ================================================================
  OK: 68 SKIPPED: 0 FAILED: 1
  1. Error: cpt.list (@test-cpt.R#12) 
  
  Error: testthat unit tests failed
  Execution halted