Last active
August 29, 2015 14:03
-
-
Save jimhester/a5d3c0cb58949bef2a99 to your computer and use it in GitHub Desktop.
less function for R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
withOptions <- function(optlist, expr) | |
{ | |
oldopt <- options(optlist) | |
on.exit(options(oldopt)) | |
expr <- substitute(expr) | |
eval.parent(expr) | |
} | |
less = function(x) { | |
withOptions(list(pager='less', dplyr.print_min=.Machine$integer.max, width=10000L), page(x, method='print')) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment