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: Set the default R command line for R classes.
  
  This method is used to set values for all R
  subclasses.
docstr_tok: ["Set","the","default","R","command","line","for","R","classes",".","This","method","is","used","to","set","values","for","all","R","subclasses","."]
code: def set_default_r_cmd(self, r_cmd):
      """Set the default R command line for R classes.
  
      This method is used to set values for all R
      subclasses.
      """
      self._cmd = r_cmd
  
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 2 for calling the RCommand obj's underlying member method code with example usage: obj.set_default_r_cmd(r_cmd) without return types