Hi Cindy,
to load a file try using the following code:
myFile <- " C:/Users/txd/Desktop/cardinal3/Slide1-Pten-WT2-neg/Slide1-Pten-WT2-neg.imzML "
d <- readMSIData(myFile)
In the first line, you should specify the path. You may not need the 'C:' at the beginning of the line, but that depends on how your computer wants the path to be written.
Let me know how this works out!
Best,
Giulia