Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(CornerstoneR)
  > 
  > test_check("CornerstoneR")
  ── 1. Error: Logistic (@test_fitFunction.R#19)  ────────────────────────────────
  LOGICAL() can only be applied to a 'logical', not a 'double'
  1: createCSEnvir(dt, strPreds = "x1", strResps = "y1", strGroups = "group1", lstScriptVars = list(math.fun = "Logistic"), 
         env = env) at testthat/test_fitFunction.R:19
  2: assert(testCharacter(strPreds), testSubset(strPreds, colnames(dfData)), combine = "and")
  3: assertChoice(combine, c("or", "and"))
  4: checkChoice(x, choices, null.ok, fmatch)
  5: qassert(null.ok, "B1")
  
  ── 2. Error: Function List (@test_functionList.R#14)  ──────────────────────────
  LOGICAL() can only be applied to a 'logical', not a 'NULL'
  1: expect_set_equal(funnamespace[status == "export", fun], funlist[, 1]) at testthat/test_functionList.R:14
  2: checkSetEqual(x, y, ordered, fmatch)
  3: qassert(ordered, "B1")
  
  ── 3. Error: Helper (@test_helper.R#6)  ────────────────────────────────────────
  LOGICAL() can only be applied to a 'logical', not a 'raw'
  1: createCSEnvir(carstats[, .(Cylinders, Displacement, Horsepower)], strPreds = "Displacement", 
         strResps = "Horsepower", strGroups = "Cylinders", env = env) at testthat/test_helper.R:6
  2: assert(testCharacter(strPreds), testSubset(strPreds, colnames(dfData)), combine = "and")
  3: assertChoice(combine, c("or", "and"))
  4: checkChoice(x, choices, null.ok, fmatch)
  5: qassert(null.ok, "B1")
  
  ── 4. Error: Invoke from virtual CS (@test_localInterface.R#13)  ───────────────
  LOGICAL() can only be applied to a 'logical', not a 'raw'
  1: createCSEnvir(carstats[, .(Cylinders, Displacement, Horsepower)], strPreds = "Displacement", 
         strResps = "Horsepower", strGroups = "Cylinders", env = env) at testthat/test_localInterface.R:13
  2: assert(testCharacter(strPreds), testSubset(strPreds, colnames(dfData)), combine = "and")
  3: assertChoice(combine, c("or", "and"))
  4: checkChoice(x, choices, null.ok, fmatch)
  5: qassert(null.ok, "B1")
  
  ── 5. Error: MosaicPlot (@test_mosaicPlot.R#5)  ────────────────────────────────
  LOGICAL() can only be applied to a 'logical', not a 'raw'
  1: createCSEnvir(as.data.frame(Titanic), strPreds = c("Class", "Sex", "Age", "Survived"), 
         strResps = "Freq", env = env) at testthat/test_mosaicPlot.R:5
  2: assert(testCharacter(strPreds), testSubset(strPreds, colnames(dfData)), combine = "and")
  3: assertChoice(combine, c("or", "and"))
  4: checkChoice(x, choices, null.ok, fmatch)
  5: qassert(null.ok, "B1")
  
  ── 6. Error: Classification (@test_randomForest.R#8)  ──────────────────────────
  LOGICAL() can only be applied to a 'logical', not a 'raw'
  1: createCSEnvir(iris, strPreds = colnames(iris)[1:4], strResps = colnames(iris)[5], 
         lstScriptVars = NULL, env = env) at testthat/test_randomForest.R:8
  2: assert(testCharacter(strPreds), testSubset(strPreds, colnames(dfData)), combine = "and")
  3: assertChoice(combine, c("or", "and"))
  4: checkChoice(x, choices, null.ok, fmatch)
  5: qassert(null.ok, "B1")
  
  ── 7. Error: Regression (@test_randomForest.R#84)  ─────────────────────────────
  LOGICAL() can only be applied to a 'logical', not a 'raw'
  1: createCSEnvir(warpbreaks, strPreds = colnames(warpbreaks)[2:3], strResps = colnames(warpbreaks)[1], 
         lstScriptVars = NULL, env = env) at testthat/test_randomForest.R:84
  2: assert(testCharacter(strPreds), testSubset(strPreds, colnames(dfData)), combine = "and")
  3: assertChoice(combine, c("or", "and"))
  4: checkChoice(x, choices, null.ok, fmatch)
  5: qassert(null.ok, "B1")
  
  ── 8. Error: Multi (@test_randomForest.R#123)  ─────────────────────────────────
  LOGICAL() can only be applied to a 'logical', not a 'raw'
  1: createCSEnvir(iris, strPreds = colnames(iris)[1:3], strResps = colnames(iris)[4:5], 
         lstScriptVars = NULL, env = env) at testthat/test_randomForest.R:123
  2: assert(testCharacter(strPreds), testSubset(strPreds, colnames(dfData)), combine = "and")
  3: assertChoice(combine, c("or", "and"))
  4: checkChoice(x, choices, null.ok, fmatch)
  5: qassert(null.ok, "B1")
  
  ── 9. Error: MeltLong (@test_reshape.R#19)  ────────────────────────────────────
  LOGICAL() can only be applied to a 'logical', not a 'raw'
  1: createCSEnvir(dtTest[, c(1:4)], strPreds = c("i_1", "i_2"), strResps = c("f1", "f2"), 
         lstScriptVars = list(split = "_"), env = env) at testthat/test_reshape.R:19
  2: assert(testCharacter(strPreds), testSubset(strPreds, colnames(dfData)), combine = "and")
  3: assertChoice(combine, c("or", "and"))
  4: checkChoice(x, choices, null.ok, fmatch)
  5: qassert(null.ok, "B1")
  
  ── 10. Error: CastWide (@test_reshape.R#60)  ───────────────────────────────────
  LOGICAL() can only be applied to a 'logical', not a 'raw'
  1: createCSEnvir(Indometh, strGroups = colnames(Indometh)[1], strPreds = colnames(Indometh)[2], 
         strResps = colnames(Indometh)[3], lstScriptVars = list(nodrop = FALSE), env = env) at testthat/test_reshape.R:60
  2: assert(testCharacter(strPreds), testSubset(strPreds, colnames(dfData)), combine = "and")
  3: assertChoice(combine, c("or", "and"))
  4: checkChoice(x, choices, null.ok, fmatch)
  5: qassert(null.ok, "B1")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 17 SKIPPED: 0 FAILED: 10
  1.  Error: Logistic (@test_fitFunction.R#19) 
  2.  Error: Function List (@test_functionList.R#14) 
  3.  Error: Helper (@test_helper.R#6) 
  4.  Error: Invoke from virtual CS (@test_localInterface.R#13) 
  5.  Error: MosaicPlot (@test_mosaicPlot.R#5) 
  6.  Error: Classification (@test_randomForest.R#8) 
  7.  Error: Regression (@test_randomForest.R#84) 
  8.  Error: Multi (@test_randomForest.R#123) 
  9.  Error: MeltLong (@test_reshape.R#19) 
  10. Error: CastWide (@test_reshape.R#60) 
  
  Error: testthat unit tests failed
  Execution halted