Replace the standard print method for functions with one that performs syntax highlighting, using ANSI colors, if the terminal supports them.
Replace the standard print method for functions with one that performs syntax highlighting, using ANSI colors, if the terminal supports them.
source("https://install-github.me/r-lib/prettycode")
Just call prettycode::prettycode()
and start printing functions to the
screen. Long functions are automatically paged using the default pager.
MIT © Gábor Csárdi
Add prettycode::prettycode()
. Call this function to turn on
pretty-printing of function objects. This is needed to work around
the new S3 method search limits in R 3.5.x.
If prettycode fails to highlight a function, it falls back to
base::print.function()
now (#3).
print.function
S3 method. This is needed to
avoid a new R CMD check
checkFirst public release.