catala/runtimes/r/format_r_file.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
200 B
Bash
Raw Normal View History

2023-08-05 14:04:44 +03:00
#! /bin/bash
temp=$(mktemp)
(Rscript -e "options(styler.colored_print.vertical=FALSE); con <- file('stdin'); out <- styler::style_text(readLines(con)); close(con); out" < $1) > $temp
cat $temp > $1