-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
hako
committed
Mar 14, 2015
1 parent
f40d5b9
commit 57a08ad
Showing
7 changed files
with
53 additions
and
41 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
/* | ||
* | ||
RCaller, A solution for calling R from Java | ||
Copyright (C) 2010-2014 Mehmet Hakan Satman | ||
RCaller, A solution for calling R from Java | ||
Copyright (C) 2010-2014 Mehmet Hakan Satman | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Lesser General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
any later version. | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Lesser General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
any later version. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
You should have received a copy of the GNU Lesser General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* | ||
* Mehmet Hakan Satman - [email protected] | ||
|
@@ -23,36 +23,42 @@ | |
* Please visit the blog page with rcaller label: | ||
* http://stdioe.blogspot.com.tr/search/label/rcaller | ||
*/ | ||
|
||
package rcaller; | ||
|
||
import graphics.DefaultTheme; | ||
import graphics.GraphicsTheme; | ||
|
||
public class Globals { | ||
|
||
public static String cranRepos = "http://cran.r-project.org"; | ||
public static String RScript_Windows = "C:\\Program Files\\R\\R-3.0.2\\bin\\Rscript.exe"; | ||
public static String RScript_Linux = "/usr/bin/Rscript"; | ||
public static String Rscript_current; | ||
public static String R_Windows = "C:\\Program Files\\R\\R-3.0.2\\bin\\R.exe"; | ||
public static String R_Linux = "/usr/bin/R"; | ||
public static String R_current; | ||
|
||
public static GraphicsTheme theme = new DefaultTheme(); | ||
|
||
public final static String version = "RCaller 2.0"; | ||
public final static String about = "Author: Mehmet Hakan Satman - [email protected]"; | ||
public final static String licence = "LGPL v3.0"; | ||
|
||
|
||
public static void detect_current_rscript() { | ||
if (System.getProperty("os.name").contains("Windows")) { | ||
Rscript_current = RScript_Windows; | ||
R_current = R_Windows; | ||
} else { | ||
Rscript_current = RScript_Linux; | ||
R_current = R_Linux; | ||
} | ||
} | ||
public static String cranRepos = "http://cran.r-project.org"; | ||
public static String RScript_Windows = "C:\\Program Files\\R\\R-3.0.2\\bin\\Rscript.exe"; | ||
public static String RScript_Linux = "/usr/bin/Rscript"; | ||
public static String Rscript_current; | ||
public static String R_Windows = "C:\\Program Files\\R\\R-3.0.2\\bin\\R.exe"; | ||
public static String R_Linux = "/usr/bin/R"; | ||
public static String R_current; | ||
|
||
public static GraphicsTheme theme = new DefaultTheme(); | ||
|
||
public final static String version = "RCaller 2.0"; | ||
public final static String about = "Author: Mehmet Hakan Satman - [email protected]"; | ||
public final static String licence = "LGPL v3.0"; | ||
|
||
public static void detect_current_rscript() { | ||
if (System.getProperty("os.name").contains("Windows")) { | ||
Rscript_current = RScript_Windows; | ||
R_current = R_Windows; | ||
} else { | ||
Rscript_current = RScript_Linux; | ||
R_current = R_Linux; | ||
} | ||
} | ||
|
||
public static boolean isWindows() { | ||
if (System.getProperty("os.name").contains("Windows")) { | ||
return (true); | ||
} else { | ||
return (false); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters