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
docstr: initializes interface to r
  (default 'R')
docstr_tok: ["initializes","interface","to","r","(","default","'","R","'",")"]
code: def __init__(self, r_cmd=None, **inputs):
      """initializes interface to r
      (default 'R')
      """
      super().__init__(**inputs)
      if r_cmd and isdefined(r_cmd):
          self._cmd = r_cmd
  
      # For r commands force all output to be returned since r
      # does not have a clean way of notifying an error
      self.terminal_output = "allatonce"
  
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 1 to create a new RCommand object from inherited base classes: CommandLine with example: obj = RCommand(r_cmd)