Class RLangRunner

java.lang.Object
es.urjc.etsii.grafo.autoconfig.r.RLangRunner
Direct Known Subclasses:
GraalRLangRunner, ShellRLangRunner

public abstract class RLangRunner extends Object
Runs arbitrary R code
  • Constructor Details

    • RLangRunner

      public RLangRunner()
  • Method Details

    • drainStream

      protected boolean drainStream(Level level, InputStream stream) throws IOException
      Drain a given stream to logs
      Parameters:
      level - LogLevel
      stream - stream to drain
      Throws:
      IOException - if something goes wrong
    • execute

      public abstract void execute(InputStream rCode)
      Execute the given R code
      Parameters:
      rCode - R code to execute