Class RUtil

java.lang.Object
fr.ifremer.isisfish.util.RUtil

public class RUtil extends Object
Utility class fo R integration with isis fish.
  • Field Details

  • 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

      public static String parseRscriptOutput(InputStream is) throws IOException
      Parse valid Rscript output to find if rJava is installed and where it is installed.
      Parameters:
      is - process output
      Throws:
      IOException
    • getArchLibraryPath

      protected static String getArchLibraryPath(String libraryRepository)
      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