Running 'testthat.R' [19s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(commonsMath)
  > 
  > test_check("commonsMath")
  Starting instance. ********************************
  -- 1. Error: sample function (@tests-transcompile.R#26)  -----------------------
  missing value where TRUE/FALSE needed
  1: myExpectLength(function() sample(c(3, 2, 1))) at testthat/tests-transcompile.R:26
  2: `^.rscalaBridge`(s, f) at testthat/tests-transcompile.R:16
  3: scalaConnect(details)
  4: stop(details[["config"]]$error$message)
  
  -- 2. Error: special functions (@tests-transcompile.R#43)  ---------------------
  missing value where TRUE/FALSE needed
  1: myExpect(function(x = stD0) {
         gamma(x)
     }, list(3.72), FALSE) at testthat/tests-transcompile.R:43
  2: `^.rscalaBridge`(s, f) at testthat/tests-transcompile.R:6
  3: scalaConnect(details)
  4: stop(details[["config"]]$error$message)
  
  -- 3. Error: uniform distribution (@tests-transcompile.R#91)  ------------------
  missing value where TRUE/FALSE needed
  1: myExpect(function(x = stD1) {
         dunif(x, -3, 2)
     }, list(0.25), FALSE) at testthat/tests-transcompile.R:91
  2: `^.rscalaBridge`(s, f) at testthat/tests-transcompile.R:6
  3: scalaConnect(details)
  4: stop(details[["config"]]$error$message)
  
  -- 4. Error: normal distribution (@tests-transcompile.R#103)  ------------------
  missing value where TRUE/FALSE needed
  1: myExpect(function(x = stD1) {
         dnorm(x, -3, 2)
     }, list(0.25), FALSE) at testthat/tests-transcompile.R:103
  2: `^.rscalaBridge`(s, f) at testthat/tests-transcompile.R:6
  3: scalaConnect(details)
  4: stop(details[["config"]]$error$message)
  
  -- 5. Error: gamma distribution (@tests-transcompile.R#115)  -------------------
  missing value where TRUE/FALSE needed
  1: myExpect(function(x = stD1) {
         dgamma(x, 3, 2)
     }, list(0.25), FALSE) at testthat/tests-transcompile.R:115
  2: `^.rscalaBridge`(s, f) at testthat/tests-transcompile.R:6
  3: scalaConnect(details)
  4: stop(details[["config"]]$error$message)
  
  -- 6. Error: exponential distribution (@tests-transcompile.R#127)  -------------
  missing value where TRUE/FALSE needed
  1: myExpect(function(x = stD1) {
         dexp(x, 3)
     }, list(0.25), FALSE) at testthat/tests-transcompile.R:127
  2: `^.rscalaBridge`(s, f) at testthat/tests-transcompile.R:6
  3: scalaConnect(details)
  4: stop(details[["config"]]$error$message)
  
  -- 7. Error: beta distribution (@tests-transcompile.R#139)  --------------------
  missing value where TRUE/FALSE needed
  1: myExpect(function(x = stD1) {
         dbeta(x, 3, 2)
     }, list(0.25), FALSE) at testthat/tests-transcompile.R:139
  2: `^.rscalaBridge`(s, f) at testthat/tests-transcompile.R:6
  3: scalaConnect(details)
  4: stop(details[["config"]]$error$message)
  
  -- 8. Error: t distribution (@tests-transcompile.R#151)  -----------------------
  missing value where TRUE/FALSE needed
  1: myExpect(function(x = stD1) {
         dt(x, 3)
     }, list(0.25), FALSE) at testthat/tests-transcompile.R:151
  2: `^.rscalaBridge`(s, f) at testthat/tests-transcompile.R:6
  3: scalaConnect(details)
  4: stop(details[["config"]]$error$message)
  
  -- 9. Error: chi squared distribution (@tests-transcompile.R#163)  -------------
  missing value where TRUE/FALSE needed
  1: myExpect(function(x = stD1) {
         dchisq(x, 3)
     }, list(0.25), FALSE) at testthat/tests-transcompile.R:163
  2: `^.rscalaBridge`(s, f) at testthat/tests-transcompile.R:6
  3: scalaConnect(details)
  4: stop(details[["config"]]$error$message)
  
  -- 10. Error: F distribution (@tests-transcompile.R#175)  ----------------------
  missing value where TRUE/FALSE needed
  1: myExpect(function(x = stD1) {
         df(x, 3, 2)
     }, list(0.25), FALSE) at testthat/tests-transcompile.R:175
  2: `^.rscalaBridge`(s, f) at testthat/tests-transcompile.R:6
  3: scalaConnect(details)
  4: stop(details[["config"]]$error$message)
  
  -- 11. Error: geometric distribution (@tests-transcompile.R#187)  --------------
  missing value where TRUE/FALSE needed
  1: myExpect(function(x = stD1) {
         dgeom(x, 0.73)
     }, list(3), FALSE) at testthat/tests-transcompile.R:187
  2: `^.rscalaBridge`(s, f) at testthat/tests-transcompile.R:6
  3: scalaConnect(details)
  4: stop(details[["config"]]$error$message)
  
  -- 12. Error: binomial distribution (@tests-transcompile.R#199)  ---------------
  missing value where TRUE/FALSE needed
  1: myExpect(function(x = stD1) {
         dbinom(x, 10, 0.73)
     }, list(13), FALSE) at testthat/tests-transcompile.R:199
  2: `^.rscalaBridge`(s, f) at testthat/tests-transcompile.R:6
  3: scalaConnect(details)
  4: stop(details[["config"]]$error$message)
  
  -- 13. Error: negative binomial distribution (@tests-transcompile.R#211)  ------
  missing value where TRUE/FALSE needed
  1: myExpect(function(x = stD1) {
         dnbinom(x, 10, 0.73)
     }, list(13), FALSE) at testthat/tests-transcompile.R:211
  2: `^.rscalaBridge`(s, f) at testthat/tests-transcompile.R:6
  3: scalaConnect(details)
  4: stop(details[["config"]]$error$message)
  
  -- 14. Error: poisson distribution (@tests-transcompile.R#223)  ----------------
  missing value where TRUE/FALSE needed
  1: myExpect(function(x = stD1) {
         dpois(x, 7.73)
     }, list(13), FALSE) at testthat/tests-transcompile.R:223
  2: `^.rscalaBridge`(s, f) at testthat/tests-transcompile.R:6
  3: scalaConnect(details)
  4: stop(details[["config"]]$error$message)
  
  == testthat results  ===========================================================
  OK: 0 SKIPPED: 0 FAILED: 14
  1. Error: sample function (@tests-transcompile.R#26) 
  2. Error: special functions (@tests-transcompile.R#43) 
  3. Error: uniform distribution (@tests-transcompile.R#91) 
  4. Error: normal distribution (@tests-transcompile.R#103) 
  5. Error: gamma distribution (@tests-transcompile.R#115) 
  6. Error: exponential distribution (@tests-transcompile.R#127) 
  7. Error: beta distribution (@tests-transcompile.R#139) 
  8. Error: t distribution (@tests-transcompile.R#151) 
  9. Error: chi squared distribution (@tests-transcompile.R#163) 
  1. ...
  
  Error: testthat unit tests failed
  Stopping instance. **************************
  Execution halted