Skip to content

how to view source code of a function inside a package?

5 messages · C W, Duncan Murdoch, Sarah Goslee +1 more

#
On 15/11/2012 2:21 PM, C W wrote:
You can use the prefix MCMC:::foo to display the foo function from MCMC, 
whether or not it is exported.

Duncan Murdoch
#
This is R FAQ 7.40, and that document gives some good pointers:
http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-do-I-access-the-source-code-for-a-function_003f

I prefer to simply download the source code version of the package
from CRAN, so that comments aren't stripped, but there are several
other options.

Sarah
On Thu, Nov 15, 2012 at 2:21 PM, C W <tmrsg11 at gmail.com> wrote:
--
Sarah Goslee
http://www.functionaldiversity.org
#
It might be a C code wrapped around.
-m
On Thu, Nov 15, 2012 at 8:21 PM, C W <tmrsg11 at gmail.com> wrote: