diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/formatters/installers/r-styler.bash | 2 | ||||
| -rw-r--r-- | test/formatters/samplecode/r-styler/in.R | 15 | ||||
| -rw-r--r-- | test/formatters/samplecode/r-styler/out.R | 12 |
3 files changed, 29 insertions, 0 deletions
diff --git a/test/formatters/installers/r-styler.bash b/test/formatters/installers/r-styler.bash new file mode 100644 index 0000000..3e7f41d --- /dev/null +++ b/test/formatters/installers/r-styler.bash @@ -0,0 +1,2 @@ +apt-get install -y r-base-core +R --no-echo --no-save --no-restore -e "install.packages('styler')" diff --git a/test/formatters/samplecode/r-styler/in.R b/test/formatters/samplecode/r-styler/in.R new file mode 100644 index 0000000..5a00a8b --- /dev/null +++ b/test/formatters/samplecode/r-styler/in.R @@ -0,0 +1,15 @@ +{ + ((( + 2 + ))) + } + +{ +{ + call( + call1(2, 3), + { + sin(cos(pi)) + } ) + } +} diff --git a/test/formatters/samplecode/r-styler/out.R b/test/formatters/samplecode/r-styler/out.R new file mode 100644 index 0000000..988599b --- /dev/null +++ b/test/formatters/samplecode/r-styler/out.R @@ -0,0 +1,12 @@ +{ + ((( + 2 + ))) +} + +{{ call( + call1(2, 3), + { + sin(cos(pi)) + } +) }} |
