stefano22 wrote:
I am currently fighting this same issue. Could you please elaborate on what exactly you did to resolve the issue?
I went into Environment Variables and added 2 entries:
Any information that you can provide would be greatly appreciated.
Thanks,
sehunley
Guys today I spent a bit of time and I think I've figured out my problem.Stefano,
I realized that the web application is unable to dynamically set the environment variable PATH when runs under iis by using the following statement:To test this I added manually (from Control Panel/System) the r executable folder to the environment variable and now works fine.BinPath = GetWinRegistryPath(); var envPath = Environment.GetEnvironmentVariable("PATH"); // this statement not work under iis Environment.SetEnvironmentVariable("PATH", envPath + Path.PathSeparator + BinPath);
Setting the environment variable works perfectly when you use visual studio development server (cassini) during application development.
I take this opportunity to ask please if there is anyone who knows how to dynamically set the system variable correctly.
Thank you all.
stefano
I am currently fighting this same issue. Could you please elaborate on what exactly you did to resolve the issue?
I went into Environment Variables and added 2 entries:
- RHOME = C:\Program Files\R\R-3.1.1
-
RPATH = "C:\Program Files\R\R-3.1.1\bin\i386
Any information that you can provide would be greatly appreciated.
Thanks,
sehunley