kreutz-lab / Rcall

R function interface for Matlab
BSD 3-Clause "New" or "Revised" License
23 stars 4 forks source link

ERROR:The system cannot find the path specified. #2

Closed foudasarah closed 3 years ago

foudasarah commented 3 years ago

Hello, I having the following issue when I'm making run the example script. I should have set all the path correctly maybe I missed something can you help? Thank you

The system cannot find the path specified. The system cannot find the path specified. Warning: Is the R package installed? Try to run Rrun.R in R for error prouning.

In Rpull (line 51) Unrecognized function or variable 'dat'.

Error in Rpull (line 56) if isfield(dat,[varargin{i} '_subfields']) && ~isempty(dat.([varargin{i} '_subfields'])) image

foudasarah commented 3 years ago

I also runed the Rrun,R and installed R package.

foudasarah commented 3 years ago

And the error appears at the Rpull function

foudasarah commented 3 years ago

Thank you !

JanineEgert commented 3 years ago

Hi Sarah, it looks like the problem goes into your PATH environment variables. Did you try opening R and Matlab in your terminal? Maybe check the path by 'which' or 'where' (windows). We can also chat per skype 'Janine E' if you can not manage opening the R/Matlab instances. Best, Janine

foudasarah commented 3 years ago

Hello. I tried with an other device I get this issue : at the same place (Rpull) The filename, directory name, or volume label syntax is incorrect. The filename, directory name, or volume label syntax is incorrect. Warning: Is the R package installed? Try to run Rrun.R in R for error prouning.

In Rpull (line 51) Unrecognized function or variable 'dat'.

Error in Rpull (line 56) if isfield(dat,[varargin{i} '_subfields']) && ~isempty(dat.([varargin{i} '_subfields']))

I will try to figure out what is going on. And let you kmow I think I did something not good thank you

JanineEgert commented 3 years ago

This is the same issue of the system not finding the R executable. If so, try to add the R path to your system environmental variable, or define the R path in the Rinit function as second input argument Rinit([],'C:\Program Files\R\R-4.1.0\bin\R.exe')

JanineEgert commented 3 years ago

Setting the R path solved the problem on both machines