Skip to content

How to step in a function?

6 messages · David Winsemius, Peng Yu

#
To debug a function, what I currently know is to put 'browser()' in
it. But I'm wondering if there is a way like 'step in' that is
available in debuggers of other languages (e.g. gdb).
#
On Dec 2, 2009, at 8:58 PM, Peng Yu wrote:

            
Learn to search:

 > library(sos)
 > ???"debug step"

--
David Winsemius, MD
Heritage Laboratories
West Hartford, CT
#
On Wed, Dec 2, 2009 at 8:08 PM, David Winsemius <dwinsemius at comcast.net> wrote:
I download the document from cran. But I prefer to consult the
document from R session. What command should I use to get the document
for the package of sos? What command should I use to get the list of
functions that are in sos?
#
On Dec 2, 2009, at 10:54 PM, Peng Yu wrote:

            
The same way you would install any other package.
Most packages have an index. Some will display a list with:
help(package= <pkg-name> )

(Do you read r-help? Did you read any basic material? Seems as though  
this much should have crossed your eyes and brain before. )
--

David Winsemius, MD
Heritage Laboratories
West Hartford, CT
#
On Wed, Dec 2, 2009 at 10:12 PM, David Winsemius <dwinsemius at comcast.net> wrote:
I used some other method to look for functions that are available from
other packages. But it didn't work for sos. And I was aware of the
package argument to help().
#
On Dec 2, 2009, at 11:31 PM, Peng Yu wrote:

            
If it is still not clear, then do it the old fashioned way. Either
<RTFM>  i.e. http://cran.r-project.org/manuals.html     ... or

RSiteSearch("install packages")