2017-04-30 11:36:42 +02:00
|
|
|
diff -ur rstudio-1.1.216-old/src/cpp/core/CMakeLists.txt rstudio-1.1.216-new/src/cpp/core/CMakeLists.txt
|
|
|
|
--- rstudio-1.1.216-old/src/cpp/core/r_util/REnvironmentPosix.cpp 2017-04-30 03:37:26.669418665 -0400
|
|
|
|
+++ rstudio-1.1.216-new/src/cpp/core/r_util/REnvironmentPosix.cpp 2017-04-30 03:36:33.590726185 -0400
|
|
|
|
@@ -87,10 +87,7 @@
|
2015-03-23 21:26:13 +01:00
|
|
|
{
|
|
|
|
// define potential paths
|
|
|
|
std::vector<std::string> rScriptPaths;
|
|
|
|
- rScriptPaths.push_back("/usr/bin/R");
|
|
|
|
- rScriptPaths.push_back("/usr/local/bin/R");
|
|
|
|
- rScriptPaths.push_back("/opt/local/bin/R");
|
2017-04-30 11:36:42 +02:00
|
|
|
- rScriptPaths.push_back("/Library/Frameworks/R.framework/Resources/bin/R");
|
2015-03-23 21:26:13 +01:00
|
|
|
+ rScriptPaths.push_back("@R@/bin/R");
|
|
|
|
return scanForRScript(rScriptPaths, pErrMsg);
|
|
|
|
}
|
2017-04-30 11:36:42 +02:00
|
|
|
|
|
|
|
@@ -226,8 +223,7 @@
|
2015-03-23 21:26:13 +01:00
|
|
|
// scan in standard locations as a fallback
|
|
|
|
std::string scanErrMsg;
|
|
|
|
std::vector<std::string> rScriptPaths;
|
|
|
|
- rScriptPaths.push_back("/usr/local/bin/R");
|
|
|
|
- rScriptPaths.push_back("/usr/bin/R");
|
|
|
|
+ rScriptPaths.push_back("@R@/bin/R");
|
|
|
|
FilePath scriptPath = scanForRScript(rScriptPaths, &scanErrMsg);
|
|
|
|
if (scriptPath.empty())
|
|
|
|
{
|