Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > 
  > test_check("trelliscope")
  Loading required package: trelliscope
  Loading required package: datadr
  OMP: Warning #96: Cannot form a team with 4 threads, using 2 instead.
  OMP: Hint: Consider unsetting KMP_ALL_THREADS and OMP_THREAD_LIMIT (if either is set).
  1. Error: makeDisplay works (@test-1-simple-display.R#35) ----------------------
  <text>:7:3: unexpected ','
  6:     collect(reduce.key, res)
  7: }),
       ^
  1: makeDisplay(bySite, name = "variety_vs_yield", desc = "test display with barley data", 
         panelFn = pf, cogFn = cf, width = 400, height = 400, lims = list(x = "same", 
             y = "free"), state = stateSpec(layout = list(nrow = 2, ncol = 3))) at testthat/test-1-simple-display.R:35
  2: validateLims(lims, data, panelFn, params, packages, verbose)
  3: prepanel(data, prepanelFn = prepanelFn, params = params, packages = packages)
  4: datadr::mrExec(data, map = map, reduce = reduce, control = control, params = parList, 
         packages = packages)
  5: nullAttributes(reduce)
  6: eval(parse(text = deparse(e)))
  7: parse(text = deparse(e))
  
  *** Copying latest viewer to vdb directory...
  2. Error: find globals (@test-2-globals.R#32) ----------------------------------
  <text>:7:3: unexpected ','
  6:     collect(reduce.key, res)
  7: }),
       ^
  1: makeDisplay(bySite, name = "variety_vs_yield_gv", desc = "test display with barley data", 
         panelFn = pf, cogFn = cf, width = 400, height = 400, lims = list(x = "same", 
             y = "free")) at testthat/test-2-globals.R:32
  2: validateLims(lims, data, panelFn, params, packages, verbose)
  3: prepanel(data, prepanelFn = prepanelFn, params = params, packages = packages)
  4: datadr::mrExec(data, map = map, reduce = reduce, control = control, params = parList, 
         packages = packages)
  5: nullAttributes(reduce)
  6: eval(parse(text = deparse(e)))
  7: parse(text = deparse(e))
  
  3. Error: global saving for displays works (@test-3-globals-by-hand.R#61) ------
  <text>:7:3: unexpected ','
  6:     collect(reduce.key, res)
  7: }),
       ^
  1: makeDisplay(bySite, name = "variety_vs_yield", desc = "test display with barley data", 
         panelFn = pf2, cogFn = cf, width = 400, height = 400, lims = list(x = "same", 
             y = "free"), detectGlobals = FALSE) at testthat/test-3-globals-by-hand.R:61
  2: validateLims(lims, data, panelFn, params, packages, verbose)
  3: prepanel(data, prepanelFn = prepanelFn, params = params, packages = packages)
  4: datadr::mrExec(data, map = map, reduce = reduce, control = control, params = parList, 
         packages = packages)
  5: nullAttributes(reduce)
  6: eval(parse(text = deparse(e)))
  7: parse(text = deparse(e))
  
  testthat results ================================================================
  OK: 0 SKIPPED: 0 FAILED: 3
  1. Error: makeDisplay works (@test-1-simple-display.R#35) 
  2. Error: find globals (@test-2-globals.R#32) 
  3. Error: global saving for displays works (@test-3-globals-by-hand.R#61) 
  
  Error: testthat unit tests failed
  Execution halted