Running 'testthat.R' [21s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > 
  > test_check("aibd")
  Loading required package: aibd
  ************ Starting tests at level 1 (extensive=FALSE). ************
  trying URL 'https://downloads.lightbend.com/scala/2.13.1/scala-2.13.1.tgz'
  Content type 'application/octet-stream' length 19685743 bytes (18.8 MB)
  ==================================================
  downloaded 18.8 MB
  
  -- ERROR (test-aibd-pmf.R:10:1): (code run outside of `test_that()`) -----------
  Error: Error in scalaConfig(FALSE): 
  
  <<<<<<<<<<
  <<<<<<<<<<
  <<<<<<<<<<
  
  Scala is not found!  Please run 'rscala::scalaConfig(download="scala")'
  
  >>>>>>>>>>
  >>>>>>>>>>
  >>>>>>>>>>
  
  
  Backtrace:
      x
   1. \-aibd:::enumerateFeatureAllocations(nItems, maxNFeatures) test-aibd-pmf.R:10:0
   2.   \-s$FA.enumerate(as.integer(nItems[1]), as.integer(maxNFeatures[1]))
   3.     \-rscala:::scalaInvoke(details, snippet, list(...), parent.frame(1))
   4.       \-rscala:::scalaConnect(details)
  
  -- ERROR (test-aibd-reduces-to-ibp.R:8:1): (code run outside of `test_that()`) -
  Error: Error in scalaConfig(FALSE): 
  
  <<<<<<<<<<
  <<<<<<<<<<
  <<<<<<<<<<
  
  Scala is not found!  Please run 'rscala::scalaConfig(download="scala")'
  
  >>>>>>>>>>
  >>>>>>>>>>
  >>>>>>>>>>
  
  
  Backtrace:
      x
   1. \-aibd:::enumerateFeatureAllocations(nItems, maxNFeatures) test-aibd-reduces-to-ibp.R:8:0
   2.   \-s$FA.enumerate(as.integer(nItems[1]), as.integer(maxNFeatures[1]))
   3.     \-rscala:::scalaInvoke(details, snippet, list(...), parent.frame(1))
   4.       \-rscala:::scalaConnect(details)
  
  -- ERROR (test-dist-numFeatures.R:16:1): (code run outside of `test_that()`) ---
  Error: Error in scalaConfig(FALSE): 
  
  <<<<<<<<<<
  <<<<<<<<<<
  <<<<<<<<<<
  
  Scala is not found!  Please run 'rscala::scalaConfig(download="scala")'
  
  >>>>>>>>>>
  >>>>>>>>>>
  >>>>>>>>>>
  
  
  Backtrace:
      x
   1. \-aibd:::enumerateFeatureAllocations(nItems, max_F) test-dist-numFeatures.R:16:0
   2.   \-s$FA.enumerate(as.integer(nItems[1]), as.integer(maxNFeatures[1]))
   3.     \-rscala:::scalaInvoke(details, snippet, list(...), parent.frame(1))
   4.       \-rscala:::scalaConnect(details)
  
  -- ERROR (test-ibp-pmf.R:8:1): (code run outside of `test_that()`) -------------
  Error: Error in scalaConfig(FALSE): 
  
  <<<<<<<<<<
  <<<<<<<<<<
  <<<<<<<<<<
  
  Scala is not found!  Please run 'rscala::scalaConfig(download="scala")'
  
  >>>>>>>>>>
  >>>>>>>>>>
  >>>>>>>>>>
  
  
  Backtrace:
      x
   1. \-aibd:::enumerateFeatureAllocations(nItems, maxNFeatures) test-ibp-pmf.R:8:0
   2.   \-s$FA.enumerate(as.integer(nItems[1]), as.integer(maxNFeatures[1]))
   3.     \-rscala:::scalaInvoke(details, snippet, list(...), parent.frame(1))
   4.       \-rscala:::scalaConnect(details)
  
  -- ERROR (test-lglfm-posterior.R:16:1): (code run outside of `test_that()`) ----
  Error: Error in scalaConfig(FALSE): 
  
  <<<<<<<<<<
  <<<<<<<<<<
  <<<<<<<<<<
  
  Scala is not found!  Please run 'rscala::scalaConfig(download="scala")'
  
  >>>>>>>>>>
  >>>>>>>>>>
  >>>>>>>>>>
  
  
  Backtrace:
      x
   1. \-aibd:::enumerateFeatureAllocations(nItems, maxNFeatures) test-lglfm-posterior.R:16:0
   2.   \-s$FA.enumerate(as.integer(nItems[1]), as.integer(maxNFeatures[1]))
   3.     \-rscala:::scalaInvoke(details, snippet, list(...), parent.frame(1))
   4.       \-rscala:::scalaConnect(details)
  
  -- Skip (test-parameters-sampling.R:6:3): Posterior simulation for sigmaX, sigma
  Reason: Test level is 1 but 3 is required.
  
  -- Skip (test-sampling-matches-pmf.R:79:3): Sampling from IBP using constructive
  Reason: Test level is 1 but 2 is required.
  
  -- Skip (test-sampling-matches-pmf.R:84:3): Sampling from AIBD using constructiv
  Reason: Test level is 1 but 2 is required.
  
  -- Skip (test-sampling-matches-pmf.R:89:3): Sampling from MAIBD using constructi
  Reason: Test level is 1 but 4 is required.
  
  -- Skip (test-sampling-matches-pmf.R:94:3): Sampling from IBP using MCMC gives a
  Reason: Test level is 1 but 3 is required.
  
  -- Skip (test-sampling-matches-pmf.R:99:3): Sampling from LGLFM with IBP prior i
  Reason: Test level is 1 but 2 is required.
  
  -- Skip (test-sampling-matches-pmf.R:104:3): Sampling from LGLFM with AIBD prior
  Reason: Test level is 1 but 3 is required.
  
  -- Skip (test-sampling-matches-pmf.R:109:3): Sampling from LGLFM with AIBD prior
  Reason: Test level is 1 but 2 is required.
  
  -- Skip (test-sampling-matches-pmf.R:114:3): Sampling from LGLFM with MAIBD prio
  Reason: Test level is 1 but 4 is required.
  
  -- Skip (test-sampling-matches-pmf.R:119:3): Sampling from IBP using constructiv
  Reason: Test level is 1 but 5 is required.
  
  -- Skip (test-sampling-matches-pmf.R:124:3): Sampling from IBP using MCMC (from 
  Reason: Test level is 1 but 5 is required.
  
  -- Skip (test-sampling-matches-pmf.R:129:3): Sampling from LGLFM with IBP prior 
  Reason: This test is known to fail.
  
  -- Skipped tests  --------------------------------------------------------------
  * Test level is 1 but 2 is required. (4)
  * Test level is 1 but 3 is required. (3)
  * Test level is 1 but 4 is required. (2)
  * Test level is 1 but 5 is required. (2)
  * This test is known to fail. (1)
  
  == testthat results  ===========================================================
  ERROR (test-aibd-pmf.R:10:1): (code run outside of `test_that()`)
  ERROR (test-aibd-reduces-to-ibp.R:8:1): (code run outside of `test_that()`)
  ERROR (test-dist-numFeatures.R:16:1): (code run outside of `test_that()`)
  ERROR (test-ibp-pmf.R:8:1): (code run outside of `test_that()`)
  ERROR (test-lglfm-posterior.R:16:1): (code run outside of `test_that()`)
  
  [ FAIL 5 | WARN 0 | SKIP 12 | PASS 0 ]
  Error: Test failures
  ************ Stopping tests. ************
  Execution halted