Skip to content

lorenzwalthert/styler.nocomments

Repository files navigation

styler.nocomments

Lifecycle: experimental R-CMD-check

The goal of {styler.nocomments} is to remove all comments, nothing more and nothing less. It is a third-party style guide for {styler}.

Installation

You can install the released version of {styler.nocomments} from GitHub with:

remotes::install_github("nocomments/styler.nocomments")

Example

This is a basic example of how to style code with it.

library(styler.nocomments)
cache_deactivate()
#> Deactivated cache.
text <- "x <- 4
y = 3 # comment
a;

# more comemnts
"

style_text(text)
#> x <- 4
#> y = 3
#> a;

About

Remove all comments. That's it.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages