The goal of {styler.nocomments} is to remove all comments, nothing more and nothing less. It is a third-party style guide for {styler}.
You can install the released version of {styler.nocomments} from GitHub with:
remotes::install_github("nocomments/styler.nocomments")
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;