rethomics / scopr

Read Ethoscope data in R
http://rethomics.github.io
3 stars 6 forks source link

linking fails on single file #13

Closed qgeissmann closed 6 years ago

qgeissmann commented 6 years ago
dir <- scopr_example_dir()
test_file <- paste(dir, "ethoscope_results/029/E_029/2016-01-25_21-14-55/2016-01-25_21-14-55_029.db",sep="/")
out <- link_ethoscope_metadata(test_file)

we get:

Error in link_ethoscope_metadata(test_file) : 
  You must specify a result_dir to lookup results!
In addition: Warning message:
In data.table::fread(query) :
  Stopped early on line 2. Expected 1 fields but found 1. Consider fill=TRUE and comment.char=. First discarded non-empty line: <<>>

So basically, the new datatable does NOT through any error when reading (trying to) a db file.

qgeissmann commented 6 years ago

This is related to https://github.com/Rdatatable/data.table/issues/2834.