Running ‘ggplot_extraction.R’ [14s/18s]
  Running ‘trackr-tests.R’ [10s/14s]
Running the tests in ‘tests/trackr-tests.R’ failed.
Complete output:
  > library(trackr)
  Loading required package: histry
  > library(knitr)
  > be = JSONBackend(tempfile())
  > tdb = TrackrDB(backend=be, img_dir = tempdir())
  > defaultTDB(tdb)
  An object of class "TrackrDB"
  Slot "opts":
  An object of class "TrackrOptions"
  Slot "insert_delay":
  [1] 0
  
  Slot "img_dir":
  [1] "/tmp/RtmpIoaaKy"
  
  Slot "img_ext":
  [1] "png"
  
  Slot "backend_opts":
  list()
  
  
  Slot "backend":
  Reference class object of class "JSONBackend"
  Field "docs":
  DocList (0x0)
  Field ".file":
  [1] "/tmp/RtmpIoaaKy/file3120116021ae"
  Field "file":
  [1] "/tmp/RtmpIoaaKy/file3120116021ae"
  
  > 
  > sysfil = system.file("test_docs/knitr_test.Rmd", package = "trackr")
  > rmdfil = file.path(tempdir(), "knitr_test.Rmd")
  > file.copy(sysfil, rmdfil)
  [1] TRUE
  > if(rmarkdown::pandoc_available()) {
  +     knit_and_record(rmdfil, verbose = TRUE)
  +     stopifnot(length(findRecords("mtcars")) == 2) ## recvars is 'fit' so that plus report
  + } else {
  +     message("Pandoc not available. Skipping knit_and_record test")
  + }
  Pandoc not available. Skipping knit_and_record test
  > 
  > f = function(paths) readLines(paths)
  > fil = system.file("test_docs", "knitr_test.Rmd", package = "trackr")
  > recordFiles(fil, ingestfun = f, verbose = TRUE)
    adding: home/ripley/R/Lib32/trackr/test_docs/knitr_test.Rmd (deflated 35%)
  Note: method with signature 'FeatureSet#TrackrDB' chosen for function 'prep_for_backend',
   target signature 'ObjFeatureSet#TrackrDB'.
   "ObjFeatureSet#ANY" would also be valid
  No existing record found for id SpkyV2:b884379bea781ad14f811da190732c6c
  Adding ObjFeatureSet object with ID SpkyV2:b884379bea781ad14f811da190732c6c...
  ID  SpkyV2:b884379bea781ad14f811da190732c6c 
  No existing record found for id MD5:62a8a55ba7530cc97622dba71778c8b0
  Adding RawFilesFeatureSet object with ID MD5:62a8a55ba7530cc97622dba71778c8b0...
  ID  MD5:62a8a55ba7530cc97622dba71778c8b0 
  An object of class "TrackrDB"
  Slot "opts":
  An object of class "TrackrOptions"
  Slot "insert_delay":
  [1] 0
  
  Slot "img_dir":
  [1] "/tmp/RtmpIoaaKy"
  
  Slot "img_ext":
  [1] "png"
  
  Slot "backend_opts":
  list()
  
  
  Slot "backend":
  Reference class object of class "JSONBackend"
  Field "docs":
  DocList (2x47)
  First document 
  id:                         SpkyV2:b884379bea781ad14f811da190732c6c
  klass:                      character
  derivedFromFileID:          MD5:62a8a55ba7530cc97622dba71778c8b0
  derivedFromFilePath:        /tmp/RtmpIoaaKy/rawfiles.zip
  user:                       ripley
  regdate:                    2018-08-23
  uniqueid:                   SpkyV2:b884379bea781ad14f811da190732c6c
  tags:                       
  analysisfile:               <NA>
  rstudioproject:             <NA>
  generatedin:                
  code(2):                    f = function(paths) readLines(paths) ...
  codeinfo.files:             /tmp/RtmpIoaaKy/rawfiles.zip
  codeinfo.strings:           
  codeinfo.libraries:         
  codeinfo.inputs:            
  codeinfo.outputs(2):        f .objinmem
  codeinfo.updates:           
  codeinfo.functions(2):      FALSE TRUE
  codeinfo.removes:           
  codeinfo.nsevalVars:        
  codeinfo.sideEffects:       
  codeinfo.code1:             f = function(paths) readLines(paths)
  codeinfo.code2:             .objinmem <- f("/tmp/RtmpIoaaKy/rawfiles.zip")
  sessioninfo.R.version(14):  i386-pc-solaris2.10 i386 ... Feather Spray
  sessioninfo.platform:       i386-pc-solaris2.10 (32-bit)
  sessioninfo.locale:         /en_GB.UTF-8/C/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8
  sessioninfo.running:        Solaris 10
  sessioninfo.basePkgs(7):    stats graphics grDevices utils datasets methods base
  sessioninfo.otherPkgs(3):   trackr:0.9.6 knitr:1.20 histry:0.2.2
  sessioninfo.loadedOnly(43): Rcpp:0.12.18 compiler:3.5.1 ... rjson:0.2.20
  sessioninfo.matprod:        default
  sessioninfo.BLAS:           /home/ripley/R/cc/lib/libRblas.so
  sessioninfo.LAPACK:         /home/ripley/R/cc/lib/libRlapack.so
  isplot:                     FALSE
  fsetklass:                  ObjFeatureSet
  trackrversion:              
  clineargs:                  
  resultURI:                  
  provtable:                  {\n "outputvar": [ "be", "tdb", "sysfil", "rmdfil...
  titles:                     <NA>
  regtime:                    23:08:06
  regdatetime:                2018-08-23T23:08:06Z
  id:                         SpkyV2:b884379bea781ad14f811da190732c6c
  codeinfo.files:             /tmp/RtmpIoaaKy/rawfiles.zip
  codeinfo.strings:           
  codeinfo.libraries:         
  codeinfo.inputs:            
  codeinfo.outputs(2):        f .objinmem
  codeinfo.updates:           
  codeinfo.functions(2):      FALSE TRUE
  codeinfo.removes:           
  codeinfo.nsevalVars:        
  codeinfo.sideEffects:       
  codeinfo.code1:             f = function(paths) readLines(paths)
  codeinfo.code2:             .objinmem <- f("/tmp/RtmpIoaaKy/rawfiles.zip")
  regtime:                    00:08:06
  regdatetime:                2018-08-24T00:08:06Z
  preview.path:               SpkyV2_b884379bea781ad14f811da190732c6c_thumb.png
  image.path:                 SpkyV2_b884379bea781ad14f811da190732c6c.png
  preview.path:               SpkyV2_b884379bea781ad14f811da190732c6c_thumb.png
  image.path:                 SpkyV2_b884379bea781ad14f811da190732c6c.png
  
  Field ".file":
  [1] "/tmp/RtmpIoaaKy/file3120116021ae"
  Field "file":
  [1] "/tmp/RtmpIoaaKy/file3120116021ae"
  
  Warning message:
  In flatten5(as(object, "list")) :
    got a provtable field I don't understand. NULLing it.
  > 
  > res= findRecords("test_docs")
  > stopifnot(length(res) == 2, # it doesn't find the "fit" record because not directly associated iwth test_docs
  +           length(findRecords("*")) == 4)
  Error: length(findRecords("*")) == 4 is not TRUE
  Execution halted