Is there an easy way to view the source of an R package (or a method in a package), from within the interactive environment?
Just enter the name of a function/method without parentheses:
R> base::rev.default function (x) if (length(x)) x[length(x):1L] else x <environment: namespace:base>
See also R-Help Desk - Accessing the Sources in R News Volume 6/4, October 2006.
2.1m questions
2.1m answers
60 comments
57.0k users