```coffeescript
###
Requires [formatR](https://github.com/yihui/formatR)
###
path = require("path")

"use strict"
Beautifier = require('../beautifier')

module.exports = class R extends Beautifier
  name: "formatR"
  link: "https://github.com/yihui/formatR"
  executables: [
    {
      name: "Rscript"
      cmd: "rscript"
      homepage: "https://github.com/yihui/formatR"
      installation: "https://github.com/yihui/formatR"
      version: {
        parse: (text) -> text.match(/version (\d+\.\d+\.\d+) /)[1]
        runOptions: {
          returnStderr: true
        }
      }
      docker: {
        image: "unibeautify/rscript"
      }
    }
  ]

  options: {
    R: true
  }

  beautify: (text, language, options) ->
    rscript = @exe("rscript")
    r_beautifier = path.resolve(__dirname, "formatR.r")
    rscript.run([
      r_beautifier,
      options.indent_size,
      @tempFile("input", text),
      '>',
      @tempFile("input", text)
    ])
```

Fix formatR, do not pipe stdout to file, unnecessarily
user
```coffeescript
###
Requires [formatR](https://github.com/yihui/formatR)
###
path = require("path")

"use strict"
Beautifier = require('../beautifier')

module.exports = class R extends Beautifier
  name: "formatR"
  link: "https://github.com/yihui/formatR"
  executables: [
    {
      name: "Rscript"
      cmd: "rscript"
      homepage: "https://github.com/yihui/formatR"
      installation: "https://github.com/yihui/formatR"
      version: {
        parse: (text) -> text.match(/version (\d+\.\d+\.\d+) /)[1]
        runOptions: {
          returnStderr: true
        }
      }
      docker: {
        image: "unibeautify/rscript"
      }
    }
  ]

  options: {
    R: true
  }

  beautify: (text, language, options) ->
    rscript = @exe("rscript")
    r_beautifier = path.resolve(__dirname, "formatR.r")
    rscript.run([
      r_beautifier,
      options.indent_size,
      @tempFile("input", text),
    ])
```
assistant