File: README.markdown

package info (click to toggle)
r-cran-prettycode 1.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 408 kB
  • sloc: sh: 13; makefile: 2
file content (30 lines) | stat: -rw-r--r-- 1,111 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

# prettycode

> Pretty Print R Code in the Terminal

[![Linux Build Status](https://travis-ci.org/r-lib/prettycode.svg?branch=master)](https://travis-ci.org/r-lib/prettycode)
[![Windows Build status](https://ci.appveyor.com/api/projects/status/github/r-lib/prettycode?svg=true)](https://ci.appveyor.com/project/gaborcsardi/prettycode)
[![](http://www.r-pkg.org/badges/version/prettycode)](http://www.r-pkg.org/pkg/prettycode)
[![CRAN RStudio mirror downloads](http://cranlogs.r-pkg.org/badges/prettycode)](http://www.r-pkg.org/pkg/prettycode)
[![Coverage Status](https://img.shields.io/codecov/c/github/r-lib/prettycode/master.svg)](https://codecov.io/github/r-lib/prettycode?branch=master)

Replace the standard print method for functions with one that performs
syntax highlighting, using ANSI colors, if the terminal supports them.

## Installation

```r
install.packages("prettycode")
```

## Usage

Just call `prettycode::prettycode()` and start printing functions to the
screen. Long functions are automatically paged using the default pager.

![](/inst/screenshot.png)

## License

MIT © Gábor Csárdi