knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

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()
text <- "x <- 4
y = 3 # comment
a;

# more comemnts
"

style_text(text)


lorenzwalthert/styler.nocomments documentation built on Dec. 27, 2021, 12:15 a.m.