-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
R.Net Initialization error on Mac resolved by starting from Xamarin from terminal #176
Comments
Have the same problem but with Visual Code. Also homebrew provided R and Mono. But unlikely @rrottier launching from terminal does not help at all. Running fsharpi from terminal helps neither. Without setting |
cc @evelinag who has been using R provider on Mac and might be able to help? |
If I remember correctly, if you start Xamarin Studio from Launchpad, by default it doesn't see the content of your environment variables - so it doesn't find your R or mono installations. One solution is to start it from the Terminal. Then the process inherits all the environment variables that are available in the Terminal when it's started. |
@evelinag in my case I have |
@pro100filipp can you extract a detailed log using instructions from here: http://bluemountaincapital.github.io/FSharpRProvider/diagnostics.html ? |
As I can see from log file the problem is that despite R_HOME being set RDotNet is attempting to create instance from the default R path ( |
Hmm, it seems that R.NET ignores the DLL when setting the environment variables. We can fix that in R provider by calling Out of curiosity, can you try if things works when you create the default folder, even if you just leave it empty? (I wonder if the |
Creating the directory led to new Update |
This is more of a workaround for those who might have the same issue as me than a serious issue, although if someone can explain to me how to resolve the underlying issue that would be great as well. I followed the steps in the wiki to set up RProvider for Mac, except I use the homebrew provided mono and R which are both 64bit by default.
When launching Xamarin from the Launchpad I get the following error:
But when launching Xamarin from the terminal using:
Everything works fine.
The text was updated successfully, but these errors were encountered: