# NOT RUN {
prevtdb = defaultTDB()
defaultTDB(listTDB(img_dir = tempdir()))
mt = datasets::mtcars
record(mt)
res = findRecords("mtcars")
stopifnot(length(res) ==1)
rmRecord(mt)
res = findRecords("mtcars")
stopifnot(length(res) == 0)
# }
# NOT RUN {
f = function(paths) readLines(paths)
fil = system.file("test_docs", "knitr_test.Rmd", package = "trackr")
recordFiles(fil, ingestfun = f)
res= findRecords("test_docs")
# }
# NOT RUN {
defaultTDB(prevtdb)
# }
Run the code above in your browser using DataLab