You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
selectSpectraVariables right now seems to be incompatible with using localData:
library(MsBackendMassbank)
library(RSQLite)
dbc<- dbConnect(SQLite(), system.file("sql", "minimassbank.sqlite",
package="MsBackendMassbank"))
# Works with no problemsbe<- backendInitialize(MsBackendMassbankSql(), dbc)
res<- selectSpectraVariables(be, spectraVariables= spectraVariables(be))
## When adding localData: errorbe@localData<- DataFrame(a= seq_along(be))
res<- selectSpectraVariables(be, spectraVariables= spectraVariables(be))
# Error in (function (cl, name, valueClass) : # assignment of an object of class “integer” is not valid for @‘localData’ in an object of class “MsBackendMassbankSql”; is(value, "DataFrame") is not TRUE## When not requesting anything from localData, it works fineres<- selectSpectraVariables(be, spectraVariables= setdiff(spectraVariables(be), "a"))
This is on 237dc75. Consequently, this causes the unit test to fail when using precursorMz caching (meowcat@7273224).
The text was updated successfully, but these errors were encountered:
meowcat
changed the title
Unit test selectSpectraVariables fails if localData is present
Unit test selectSpectraVariables fails if localData is present and requested
Mar 31, 2021
selectSpectraVariables
right now seems to be incompatible with usinglocalData
:This is on 237dc75. Consequently, this causes the unit test to fail when using
precursorMz
caching (meowcat@7273224).MsBackendMassbank/tests/testthat/test_MsBackendMassbankSql.R
Line 169 in 237dc75
The text was updated successfully, but these errors were encountered: