If anything goes wrong when calling .Init() of the COM object for the first time, retrieve error information using .GetErrorText():
"installation problem: unable to load connector"
R proxy library could not be loaded. The cause of this common failure can be:
the environment variable %R_HOME% points to a directory where R is not installed and
the registry key corresponding to your R installation does not point to the installation folder of R and
rproxy.dll and R.dll cannot be found in the %PATH%
In case you have downloaded precompiled binaries from CRAN and installed them, something went wrong there. Please try to reinstall R using the setup program. Download "dbgview" (see section "Resources") to find out what's going wrong.
If you have compiled R yourself, check %R_HOME%\bin\rproxy.dll and the registry key HKEY_LOCAL_MACHINE\Software\R-core\R\InstallPath if this one points to your R installation folder. Starting with R 2.2.0, the registry key HKEY_CURRENT_USER\Software\R-core\R\InstallPath can also be used. The R (D)COM Server first looks at the key under HKEY_CURRENT_USER.
Partager