Skip to content

How to see a R function's code

3 messages · Colstat, Joshua Wiley, Duncan Murdoch

#
Hi,

Section 2 of the R Internals manual gives you some information.
Assuming you have the source code,

path_to_R/src/main/names.c

holds the look up table.  I am pretty sure that dt is one of the
do_math* group (maybe math2??) so arithmetic.c may be useful.  These
are all text files so you can search in the source, but as these are
pretty low level functions, I would expect it to take some time and
effort to see and understand the code you want.  Someone else on the
list may know an easier way or know straight where to go for your
particlar purpose.

Cheers,

Josh
On Sat, Feb 11, 2012 at 2:19 PM, Colstat <colstat at gmail.com> wrote:

  
    
1 day later
#
On 12-02-11 5:19 PM, Colstat wrote:
See Uwe Ligges' article, "Accessing the sources", in

http://cran.r-project.org/doc/Rnews/Rnews_2006-4.pdf

This link and other good ones are in the "Technical papers" section on 
the HTML help page.

Duncan Murdoch