Quantcast
Channel: R.NET
Viewing all articles
Browse latest Browse all 1634

Commented Unassigned: SetEnvironmentVariables [128]

$
0
0
when i call REngine.SetEnvironmentVariables(); it throws an error:

Windows Registry sub-key 'R' of key 'HKEY_LOCAL_MACHINE\SOFTWARE\R-core' was not found

but actually, there is such a key in this folder.

i can find such lists in my registry.

HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R\3.0.1
HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R64\3.0.1


anyone can help me with this?

thanks in advance.
Comments: Hi: I am seeing a related issue. First off, I'm new to R and RDotNet; so, let me explain the full context. My environment: Visual Studio 2012 running on 64-bit Windows 7 Installed R 3.0.2 (64-bit only) (as admin user) Installed R.Net 1.5.15 nuget package Installed OnboardRDotNet solution and tried to walk through the samples. Right off the bat, REngine.SetEnvironmentVariables() threw an exception with the error message: "Windows Registry key 'SOFTWARE\R-core' not found in HKEY_LOCAL_MACHINE nor HKEY_CURRENT_USER" Again, the exception was thrown by RDotNet.NativeLibrary.NativeUtility.GetRCoreRegistryKeyWin32() as bove. In this case, it is not at the point of looking for subkey "R" or "R64" but for find the root key itself. I have verified that the following exist in my case: HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R\3.0.2 HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R64\3.0.2 I installed R as admin, so there are no corresponding entries in HKEY_CURRENT_USER. I will try to use the workaround that you suggest and continue.. Thanks.

Viewing all articles
Browse latest Browse all 1634

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>