Closed FredrikKarlssonSpeech closed 3 years ago
So this (had to fix bad function calls):
path2demoData = file.path(tempdir(),"emuR_demoData")
unlink(path2demoData, recursive = TRUE)
emuR::create_emuRdemoData()
ae <- emuR::load_emuDB(file.path(path2demoData,"ae_emuDB"))
add_ssffTrackDefinition(ae,
name="bw",
fileExtension ="fms",columnName = "bw")
add_ssffTrackDefinition(ae,
name="dbw",
fileExtension ="fms",columnName = "bw")
works without an error (although I don't, in general, quite understand what the use is of having 2 track defs. pointing to the same exact column in the SSFF files of the emuDB?)
I just noticed (by the mistake myself in some test code) that you get a not very helpful error message when you try to do this:
I guess the issue is that we should not have the same actual track under different names in the same database. But, that point is not communicated to the user in the clearest way.