Skip to content

Syntax highlight R code in the terminal

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

r-lib/prettycode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

57ccf77 · Oct 5, 2024

History

68 Commits
Aug 5, 2024
Oct 5, 2024
Nov 4, 2023
Oct 5, 2024
Dec 16, 2019
Nov 4, 2023
Nov 4, 2023
Oct 5, 2024
Nov 4, 2023
Nov 4, 2023
Apr 19, 2020
Nov 10, 2022
Nov 4, 2023
Nov 4, 2023
Nov 4, 2023
Dec 16, 2019
Nov 4, 2023

Repository files navigation

prettycode

Pretty Print R Code in the Terminal

R-CMD-check CRAN RStudio mirror downloads Codecov test coverage

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

Installation

Stable version:

install.packages("prettycode")

Development version:

pak::pak("r-lib/prettycode")

Usage

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

Options

  • prettycode.should_page controls paging. Use FALSE to disable paging for long functions.

License

MIT © Gábor Csárdi

About

Syntax highlight R code in the terminal

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages