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: Thanks for following up. I am new to R.NET. so, I just wrote the same code with the example code in "Get Started with coding" in the documentation. REngine.SetEnvironmentVariables() is used to perform the necessary set up for the PATH and R_HOME environment variables. if I pass null parameter, this function will try to locate the path via the windows registry. when I debug my code, it throws error at my first code: Windows Registry sub-key 'R' of key 'HKEY_LOCAL_MACHINE\SOFTWARE\R-core' was not found. if I comment this code, it will run to : REngine engine = REngine.GetInstance(); but the same error occurs: Windows Registry sub-key 'R' of key 'HKEY_LOCAL_MACHINE\SOFTWARE\R-core' was not found. here is my PATH environment value: C:\Program Files (x86)\SPSS Clementine\11.1\bin\;c:\gtk\bin;C:\Program Files\Common Files\Microsoft Shared\Microsoft Online Services;C:\Program Files (x86)\Common Files\Microsoft Shared\Microsoft Online Services;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Lenovo Fingerprint Reader\;C:\Program Files\Lenovo Fingerprint Reader\x86\;C:\Program Files\R\R-3.0.1\bin my windows registry: HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R\3.0.1 HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R64\3.0.1 Does this make sense? Thanks!
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: Thanks for following up. I am new to R.NET. so, I just wrote the same code with the example code in "Get Started with coding" in the documentation. REngine.SetEnvironmentVariables() is used to perform the necessary set up for the PATH and R_HOME environment variables. if I pass null parameter, this function will try to locate the path via the windows registry. when I debug my code, it throws error at my first code: Windows Registry sub-key 'R' of key 'HKEY_LOCAL_MACHINE\SOFTWARE\R-core' was not found. if I comment this code, it will run to : REngine engine = REngine.GetInstance(); but the same error occurs: Windows Registry sub-key 'R' of key 'HKEY_LOCAL_MACHINE\SOFTWARE\R-core' was not found. here is my PATH environment value: C:\Program Files (x86)\SPSS Clementine\11.1\bin\;c:\gtk\bin;C:\Program Files\Common Files\Microsoft Shared\Microsoft Online Services;C:\Program Files (x86)\Common Files\Microsoft Shared\Microsoft Online Services;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Lenovo Fingerprint Reader\;C:\Program Files\Lenovo Fingerprint Reader\x86\;C:\Program Files\R\R-3.0.1\bin my windows registry: HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R\3.0.1 HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R64\3.0.1 Does this make sense? Thanks!