Entering edit mode
I have my data as .mat file (from Matlab), and I want to process it with 'MassSpecWavelet' package to find its peaks.
I tested this code,
> path <- system.file("mat-files", package="R.matlab")
> pathname <- file.path("d:", "Prony Paper")
> data <- readMat(pathname)
and I get this reply from R;
Error in file(con, open = "rb") : cannot open the connection In addition: Warning message: In file(con, open = "rb") : cannot open file 'd:/Prony Paper': Permission denied
can anyone say me how to load .mat file?
Thank you very much

Possibly the file path is specified incorrectly, requiring a '.mat' extension
file.path("d:", "Prony Paper.mat")if that is in fact the path to the file that you're trying to read in. Also there are several 'readMat()' functions out there, so it's important to provide information on the specific function you are trying to use.