Pretty Print R Code in the Terminal
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 load the package and start printing functions to the screen. Long functions are automatically paged using the default pager.
MIT © Gábor Csárdi