<feed xmlns='http://www.w3.org/2005/Atom'>
<title>apheleia.git/test/formatters/samplecode/r-styler/out.R, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/apheleia.git/'/>
<entry>
<title>Add styleR for ess-r-mode (#377)</title>
<updated>2025-11-11T11:40:33+00:00</updated>
<author>
<name>Martin Edström</name>
<email>meedstrom91@gmail.com</email>
</author>
<published>2025-11-11T11:40:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/apheleia.git/commit/?id=e7892adc8a23612b219513ea56f62cdb825afe8f'/>
<id>e7892adc8a23612b219513ea56f62cdb825afe8f</id>
<content type='text'>
Hi! My first time adding a formatter, please let me know if I missed
anything.

Some things I'm unclear about:

1. How to fail gracefully when [styleR](https://styler.r-lib.org/)
package is absent from the system
2. Whether the formatter should be named `ess-r` or something more
general like `rlang`

## Test case

FYI, there are loads of tests to pick from on
https://github.com/r-lib/styler/tree/main/tests/testthat.

I picked
[unindention/mixed-in.R](https://github.com/r-lib/styler/blob/main/tests/testthat/unindention/mixed-in.R),
but oddly, the output
[unindention/mixed-out.R](https://github.com/r-lib/styler/blob/main/tests/testthat/unindention/mixed-out.R)
isn't quite the same as we got!

I don't know if that's an upstream issue, or that upstream changed style
since that test was written, or that perhaps the file is meant to be
concatenated into something else.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Hi! My first time adding a formatter, please let me know if I missed
anything.

Some things I'm unclear about:

1. How to fail gracefully when [styleR](https://styler.r-lib.org/)
package is absent from the system
2. Whether the formatter should be named `ess-r` or something more
general like `rlang`

## Test case

FYI, there are loads of tests to pick from on
https://github.com/r-lib/styler/tree/main/tests/testthat.

I picked
[unindention/mixed-in.R](https://github.com/r-lib/styler/blob/main/tests/testthat/unindention/mixed-in.R),
but oddly, the output
[unindention/mixed-out.R](https://github.com/r-lib/styler/blob/main/tests/testthat/unindention/mixed-out.R)
isn't quite the same as we got!

I don't know if that's an upstream issue, or that upstream changed style
since that test was written, or that perhaps the file is meant to be
concatenated into something else.</pre>
</div>
</content>
</entry>
</feed>
