[BioC] how to see the content of a R function in a package?

Holger Schwender holger.schw at gmx.de
Tue Jun 19 16:56:01 CEST 2007


Hi James,

here it is a bit more complicated to see the code. If you call

> methods("errorest")
[1] errorest.data.frame* errorest.default*

you see all the available S3 methods for the different classes. To take a look on the code, you now have to call

> ipred:::errorest.data.frame

or

> ipred:::errorest.default

Best,
Holger 

-------- Original-Nachricht --------
Datum: Tue, 19 Jun 2007 07:33:53 -0700 (PDT)
Von: James Anderson <janderson_net at yahoo.com>
An: Joern Toedling <toedling at ebi.ac.uk>
CC: "\'bioconductor\'" <bioconductor at stat.math.ethz.ch>
Betreff: Re: [BioC] how to see the content of a R function in a package?

> Thanks for your suggestions. I tried what you have suggested. I am trying
> to find the source code of function errorest in the R package ipred (I
> guess it's in CRAN, not bioconductor), I can only find:
> 
> function (formula, data, ...) 
> UseMethod("errorest", data)
> <environment: namespace:ipred>
> 
> no matter what I type errorest, or ipred:::errorest, 
> if I type errorest(), there is some error message. 
> 
> James
> 
> Joern Toedling <toedling at ebi.ac.uk> wrote: And if you want to see the
> source code of  a function that is not 
> exported in a package's namespace, you have to type the function's name 
> without parentheses, as Niki pointed out, but precede it with the 
> package name and three colons, for example:
> Biobase:::matchpt
> 
> Regards,
> Joern
> 
> r.athanasiadou wrote:
> > You mean typing the name of the function without parentheses or anything
> > else following?(after you have called the appropriate package of course)
> >
> > niki
> >
> > ICB
> > Swann Building
> > The King's Buildings
> > University of Edinburgh
> > Edinburgh, EH9 3JR
> > Scotland
> > UK
> >
> > tel:(0044)0131-6507072
> > fax:(0044)0131-6505379
> > R.Athanasiadou at sms.ed.ac.uk
> >
> >
> > -----Original Message-----
> > From: bioconductor-bounces at stat.math.ethz.ch
> > [mailto:bioconductor-bounces at stat.math.ethz.ch] On Behalf Of James
> Anderson
> > Sent: 17 June 2007 17:00
> > To: bioconductor
> > Subject: [BioC] how to see the content of a R function in a package?
> >
> > There seems to be a R command for doing this, I can not remember it
> though. 
> >
> > Thanks,
> >
> > James
> >
> >
> 
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives:
> http://news.gmane.org/gmane.science.biology.informatics.conductor
> 
> 
>  
> ---------------------------------
> 
> 
> 	[[alternative HTML version deleted]]
> 
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives:
> http://news.gmane.org/gmane.science.biology.informatics.conductor

--



More information about the Bioconductor mailing list