Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/christopherkenny/styler.quote

Third-party Style Guide For 'quote' Style
https://github.com/christopherkenny/styler.quote

Last synced: 28 days ago
JSON representation

Third-party Style Guide For 'quote' Style

Awesome Lists containing this project

README

        

---
output: github_document
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = '#>',
fig.path = 'man/figures/README-',
out.width = '100%'
)
```

# styler.quote

[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)
[![styler.quote status badge](https://christopherkenny.r-universe.dev/badges/styler.quote)](https://christopherkenny.r-universe.dev/styler.quote)

`styler.quote` implements a single-quote variant of the tidyverse style guide.
It isn't much different, but think about how many extra button presses you save by not pressing shift + ' and instead pressing just '.
It is a third-party style guide for [`styler`](https://styler.r-lib.org). This repo is based on [lorenzwalthert/styler.yours](https://github.com/lorenzwalthert/styler.yours).

## Installation

You can install the development version of `styler.quote` like so:

``` r
remotes::install_github('christopherkenny/styler.quote')
```

## Example

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

``` r
library(styler.quote)
cache_deactivate()
text <- 'x <- 4
y = 3
"a";
'

style_text(text)
```