Package fr.ifremer.isisfish.util
Class RUtil
java.lang.Object
fr.ifremer.isisfish.util.RUtil
Utility class fo R integration with isis fish.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static String
getArchLibraryPath
(String libraryRepository) On some platform, rJava dll are installed into a sub directory depending on system arch.static void
initJri()
Try to call "R" process to get location where jri is installed.static String
Parse valid Rscript output to find if rJava is installed and where it is installed.
-
Field Details
-
R_TYPE_PROPERTY
- See Also:
-
JRI_PATH_FILE
- See Also:
-
-
Constructor Details
-
RUtil
public RUtil()
-
-
Method Details
-
initJri
public static void initJri()Try to call "R" process to get location where jri is installed. -
parseRscriptOutput
Parse valid Rscript output to find if rJava is installed and where it is installed.- Parameters:
is
- process output- Throws:
IOException
-
getArchLibraryPath
On some platform, rJava dll are installed into a sub directory depending on system arch.- Parameters:
libraryRepository
- library base repository- Returns:
- rJava lib path depending on arch
-