Running 'ggplot_extraction.R' [10s]
  Running 'trackr-tests.R' [11s]
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] "D:\\temp\\RtmpOMZ6rv"
  
  Slot "img_ext":
  [1] "png"
  
  Slot "backend_opts":
  list()
  
  
  Slot "backend":
  Reference class object of class "JSONBackend"
  Field "docs":
  DocList (0x0)
  Field ".file":
  [1] "D:\\temp\\RtmpOMZ6rv\\file2d2c844b83313"
  Field "file":
  [1] "D:\\temp\\RtmpOMZ6rv\\file2d2c844b83313"
  
  > recs = 0
  > 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
  +     recs = recs + 2
  + } else {
  +     message("Pandoc not available. Skipping knit_and_record test")
  + }
  
  
  processing file: D:\temp\RtmpOMZ6rv/knitr_test.Rmd
  
  
  processing file: knitr_test.Rmd
    ordinary text without R code
  
  label: plot
    ordinary text without R code
  
  label: lm
    ordinary text without R code
  
  output file: knitr_test.knit.md
  
  "D:/compiler/pandoc/pandoc" +RTS -K512m -RTS knitr_test.utf8.md --to html4 --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output knitr_test.html --smart --email-obfuscation none --standalone --section-divs --template "D:\temp\RtmpAVu79i\RLIBS_31744166d7de9\rmarkdown\rmd\h\default.html" --no-highlight --variable highlightjs=1 --variable "theme:bootstrap" --include-in-header "D:\temp\RtmpOMZ6rv\rmarkdown-str2d2c875624cea.html" 
  
  Output created: knitr_test.html
  Note: method with signature 'FeatureSet#TrackrDB' chosen for function 'prep_for_backend',
   target signature 'ObjFeatureSet#TrackrDB'.
   "ObjFeatureSet#ANY" would also be valid
  
  
  processing file: D:\temp\RtmpOMZ6rv/knitr_test.Rmd
  No existing record found for id SpkyV2:fcc35cd5377edd84aeb1470dba633fd3
  Adding RmdFeatureSet object with ID SpkyV2:fcc35cd5377edd84aeb1470dba633fd3...
  ID  SpkyV2:fcc35cd5377edd84aeb1470dba633fd3 
  Error in gsub("(\\\\)", "\\1\\1", tmp) : 
    'translateChar' must be called on a CHARSXP, but got 'character'
  Calls: knit_and_record ... FUN -> FUN -> lapply -> FUN -> FUN -> .local -> gsub
  In addition: Warning message:
  In flatten5(as(object, "list")) :
    got a provtable field I don't understand. NULLing it.
  Execution halted