Skip to content

MarkPaulin/rair

Repository files navigation

rair

R-CMD-check Codecov test coverage

This package is a wrapper around Posit’s Air R Formatter.

Installation

You can install the development version of rair like so:

pak::pkg_install("markpaulin/rair")

Example

rair can be used to format R code:

library(rair)
bad_code <- "x+ 1  *(3 -0 )"
cat(format_code(bad_code))
#> x + 1 * (3 - 0)

Acknowledgements

This project is a thin wrapper around the Air formatter. It is heavily dependent on the rextendr package, and draws from the tomledit package for rust-related inspiration and from styler for designing an R API for styling code.

About

R wrapper for Air formatter

Resources

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Unknown
LICENSE.note

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages