code: def r_script_version():
      out = subprocess.check_output(
          ["Rscript", "--version"],
          stderr=subprocess.STDOUT,
      ).decode()
      m = re.search(r"R scripting front-end version (.*)", out)
      if not m:
          raise ValueError(f"unknown version ({out})")
      return m.group(1)
  
file_path: guildai/guild/plugins/r_util.py
imports: import os
  import re
  import subprocess
  from guild import util
label_desc: Use image node_id 8 for calling a global function with example usage: r_script_version() and returns: m