Closed apkaye closed 2 years ago
I have made an attempt to solve this issue. Please update the code and check again.
Hi,
Thank you for the quick response! I'm getting a new error:
Can you check, whether the command printed in the message "/Library/Framework/R.framework/Resources/R" CMD BATCH --slave "/Users/aaronkaye/Documents/EconResearch/Expedia/Analysis/matlab/Rrun.R" works when you paste this to the command line (e.g. bash/shell/Windows Command Prompt)?
How do you have to change the command in order to get it run?
Which operating system do you use?
hi - I am getting an error no such file directory
I'm using a mac with version 12.3.1.
the file directory obviously exists though.
Maybe it is a problem that "R" is an "Alias", i.e. shortcut (see screenshot above). Maybe you try to call the target of the Alias directly?
Thanks again for the help.
Okay - I update the file path for R, seems like '/usr/local/bin/R'
or '/Library/Frameworks/R.framework/Versions/4.2/Resources/bin/R'
get me further. I'm getting the following error in the command line:
MacBook-Pro:/ aaronkaye$ "/Library/Frameworks/R.framework/Versions/4.2/Resources/bin/R" CMD BATCH --slave "/Users/aaronkaye/Documents/Econ Research/Expedia/Analysis/matlab/Rrun.R"
/Library/Frameworks/R.framework/Resources/bin/BATCH: line 60: Econ
Rrun.R
.R.Rout: Read-only file system
Hi Again,
I think there is a bug dealing with file paths that have a spaces. My current directory (in matlab) is
/Users/aaronkaye/Documents/Econ Research/Expedia/Analysis/matlab
If I remove the spaces, Rcall now works. Here is the error that tipped me off:
Hello,
Thank you for sharing this package! I'm having some trouble with some simple example code. My code and the output are below. I'm using Matlab R2021a and R 4.2.0. Do you have any suggestions?
I think the R path is correct - that folder exists. Here are the contents of
/Library/Frameworks/R.framework/Resources/