class_docstr: Interface that runs R code
  
  >>> import nipype.interfaces.r as r
  >>> r = r.RCommand(rfile=False) # doctest: +SKIP
  >>> r.inputs.script = "Sys.getenv('USER')" # doctest: +SKIP
  >>> out = r.run()  # doctest: +SKIP
code: def _run_interface(self, runtime):
      self.terminal_output = "allatonce"
      runtime = super()._run_interface(runtime)
      if "R code threw an exception" in runtime.stderr:
          self.raise_exception(runtime)
      return runtime
  
file_path: nipype/nipype/interfaces/r.py
imports: import os
  from shutil import which
  from ..None import config
  from .base import CommandLineInputSpec, InputMultiPath, isdefined, CommandLine, traits, File, Directory
label_desc: Use image node_id 4 for calling the RCommand obj's underlying member method code with example usage: obj._run_interface(runtime) and returns: runtime