RExecutor { public static int executeFromClasspath(final String rScriptName, final String... arguments) throws IOException, InterruptedException { final File scriptFile = writeScriptFile(rScriptName); final int returnCode = executeFromFile(rScriptName, scriptFile, arguments); htsjdk.samtools.util.IOUtil.deleteFiles(scriptFile); return returnCode; }  static int executeFromClasspath(final String rScriptName, final String... arguments);  }
@Test public void testR() throws IOException, InterruptedException { RExecutor.executeFromClasspath("r/dummyR.R", "0"); }