Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/christopherkenny/styler.quote
- Owner: christopherkenny
- License: other
- Created: 2023-03-11T21:46:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-01T15:40:35.000Z (10 months ago)
- Last Synced: 2024-01-01T16:30:45.638Z (10 months ago)
- Language: R
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
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)
```