Пример #1
0
  private void checkSPOTIsInstalled() throws InPUTException {

    REXP spotInstalled = runCommand("is.element('SPOT', installed.packages()[,1])", true);
    if (!spotInstalled.asBool().isTRUE())
      throw new InPUTException(
          "In order to use InPUT tuning extension, you have to install the SPOT package for R: \"install.packages('SPOT')\" in the R console.");
  }