View the source of an R package

Viewed 15004

Is there an easy way to view the source of an R package (or a method in a package), from within the interactive environment?

4 Answers

Download package source from https://cloud.r-project.org/src/contrib and open it with your favorite editor. Find the function definition (you can use grep for that). Sometimes you can find a useful introduction as well.

Related