I haven't processed data using xcms & MSnbase in a while. Previously, the function filterFile works well for selecting specific files, using a line e.g. filterFile(rawData,file=c(1,2)))
However, when I ran it just now, it is giving this error object of type 'S4' is not subsettable. Please advise how to overcome this new error when it was working previously. Thank you.