Re: [R] How to see a R function's code

2015-03-08 Thread TeeJay
@ Jeff & @ Uwe: Thanks a lot! Worked like a charm Uwe Ligges-3 wrote > On 08.03.2015 02:45, Jeff Newmiller wrote: >> Most (perhaps all) packages are byte-compiled now. You can often see >> decompiled code by entering the name of the function without parentheses, >> or using the getAnywhere func

Re: [R] How to see a R function's code

2015-03-08 Thread Uwe Ligges
On 08.03.2015 02:45, Jeff Newmiller wrote: Most (perhaps all) packages are byte-compiled now. You can often see decompiled code by entering the name of the function without parentheses, or using the getAnywhere function. For base R functions you should probably download the R source tar file

Re: [R] How to see a R function's code

2015-03-07 Thread Jeff Newmiller
Most (perhaps all) packages are byte-compiled now. You can often see decompiled code by entering the name of the function without parentheses, or using the getAnywhere function. For base R functions you should probably download the R source tar file separately and unpack it to a convenient locat

Re: [R] How to see a R function's code

2015-03-07 Thread TeeJay
Hi there, I know this is quite an old post but I am wondering if the answer still applies!? I would like to access the boxplot function. So, I tried to follow the instruction of Uwe Ligges’s article “Accessing the Sources” . However, in “$R

Re: [R] How to see a R function's code

2012-02-12 Thread Duncan Murdoch
On 12-02-11 5:19 PM, Colstat wrote: I was wondering how do I actually see what's inside a function, say, density of t distribution, dt()? I know for some, I can type the function name inside R and the code will be displayed. But for dt(), I get dt function (x, df, ncp, log = FALSE) { if

Re: [R] How to see a R function's code

2012-02-11 Thread Joshua Wiley
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 se