I am using R 2.0.2 on a WinXP I am trying to get the code of the Kruskal-Wallis test but> kruskal.testfunction (x, ...) UseMethod("kruskal.test") <environment: namespace:stats>> ls(3)[1] "acf" "acf2AR" "add.scope" .............. [181] "kruskal.test" "ks.test" "ksmooth" ....................... [475] "window<-" "write.ftable" "xtabs"> class(kruskal.test)[1] "function"> getS3method("kruskal.test","function")Error in getS3method("kruskal.test", "function") : S3 method kruskal.test.function not found> getS3method("stats::kruskal.test","function")Error in getS3method("stats::kruskal.test", "function") : no function 'stats::kruskal.test' could be found>I searched the archives and the answer was ' use getS3method ' . The help for getS3method is getS3method(f,class,optional=FALSE) so I am lost Can somebody tell me how to get the source listing of kruskal.test or of any other hidden function? Thanks Heberto Ghezzo Meakins-Christie Labs Canada
stats:::kruskal.test.default On Mon, 17 Jan 2005 r.ghezzo at staff.mcgill.ca wrote:> I am using R 2.0.2 on a WinXP > I am trying to get the code of the Kruskal-Wallis test but > > kruskal.test > function (x, ...) > UseMethod("kruskal.test") > <environment: namespace:stats> > > > ls(3) > [1] "acf" "acf2AR" "add.scope" > .............. > [181] "kruskal.test" "ks.test" "ksmooth" > ....................... > [475] "window<-" "write.ftable" "xtabs" > > > class(kruskal.test) > [1] "function" > > > getS3method("kruskal.test","function") > Error in getS3method("kruskal.test", "function") : > S3 method kruskal.test.function not found > > > getS3method("stats::kruskal.test","function") > Error in getS3method("stats::kruskal.test", "function") : > no function 'stats::kruskal.test' could be found > > > I searched the archives and the answer was ' use getS3method ' . The help for > getS3method is getS3method(f,class,optional=FALSE) so I am lost > Can somebody tell me how to get the source listing of kruskal.test or of any > other hidden function? > Thanks > Heberto Ghezzo > Meakins-Christie Labs > Canada > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html >
> From: r.ghezzo at staff.mcgill.ca > > I am using R 2.0.2 on a WinXPDoes that version of R exist?> I am trying to get the code of the Kruskal-Wallis test but > > kruskal.test > function (x, ...) > UseMethod("kruskal.test") > <environment: namespace:stats> > > > ls(3) > [1] "acf" "acf2AR" "add.scope" > .............. > [181] "kruskal.test" "ks.test" "ksmooth" > ....................... > [475] "window<-" "write.ftable" "xtabs" > > > class(kruskal.test) > [1] "function" > > > getS3method("kruskal.test","function") > Error in getS3method("kruskal.test", "function") : > S3 method kruskal.test.function not found > > > getS3method("stats::kruskal.test","function") > Error in getS3method("stats::kruskal.test", "function") : > no function 'stats::kruskal.test' could be found > > > I searched the archives and the answer was ' use getS3method > ' . The help for > getS3method is getS3method(f,class,optional=FALSE) so I am lost > Can somebody tell me how to get the source listing of > kruskal.test or of any > other hidden function?Before you use getS3method(), you need to know which S3 method you want to get. To see what S3 methods are available, use:> methods("kruskal.test")[1] kruskal.test.default* kruskal.test.formula* Non-visible functions are asterisked Andy> Thanks > Heberto Ghezzo > Meakins-Christie Labs > Canada > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > >
But how can I see the *documented* source code in Windows? I think i.e. in the /flexmix/library/man/all.rda file is the documented(?) code for all functions of Package flexmix, but the standard Windows XP cannot open .rda files correct. Is there a way to read the documented source code of a function under Windows and R2.0.1? Thanks in advance, Matthias> Betreff: Re: [R] find source code > > > stats:::kruskal.test.default > > On Mon, 17 Jan 2005 r.ghezzo at staff.mcgill.ca wrote: > > > I am using R 2.0.2 on a WinXP > > I am trying to get the code of the Kruskal-Wallis test but > > > kruskal.test > > function (x, ...) > > UseMethod("kruskal.test") > > <environment: namespace:stats> > > > > > ls(3) > > [1] "acf" "acf2AR" "add.scope" > > .............. > > [181] "kruskal.test" "ks.test" "ksmooth" > > ....................... > > [475] "window<-" "write.ftable" "xtabs" > > > > > class(kruskal.test) > > [1] "function" > > > > > getS3method("kruskal.test","function") > > Error in getS3method("kruskal.test", "function") : > > S3 method kruskal.test.function not found > > > > > getS3method("stats::kruskal.test","function") > > Error in getS3method("stats::kruskal.test", "function") : > > no function 'stats::kruskal.test' could be found > > > > > I searched the archives and the answer was ' use > getS3method ' . The > > help for getS3method is getS3method(f,class,optional=FALSE) so I am > > lost Can somebody tell me how to get the source listing of > > kruskal.test or of any other hidden function? Thanks > > Heberto Ghezzo > > Meakins-Christie Labs > > Canada > > > > ______________________________________________ > > R-help at stat.math.ethz.ch mailing list > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide! > > http://www.R-project.org/posting-guide.html > > > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read > the posting guide! http://www.R-project.org/posting-guide.html >
> From: TEMPL Matthias > > But how can I see the *documented* source code in Windows? I > think i.e. > in the /flexmix/library/man/all.rda file is the documented(?) code for > all functions of Package flexmix, but the standard Windows XP cannot > open .rda files correct. > > Is there a way to read the documented source code of a function under > Windows and R2.0.1?Do you mean `commented' rather than `documented' (i.e., having a help page)? If so, I believe the only guaranteed way of doing that is by getting the package _source_ (i.e., the .tar.gz file) from CRAN and read the file in the R/ subdirectory after unpacking. This has nothing to do with hardware/software platform. .rda files are really only readable by R, regardless of platform, and R on Windows doesn't behave differently than on other OS in this respect. Andy> Thanks in advance, > Matthias > > > > Betreff: Re: [R] find source code > > > > > > stats:::kruskal.test.default > > > > On Mon, 17 Jan 2005 r.ghezzo at staff.mcgill.ca wrote: > > > > > I am using R 2.0.2 on a WinXP > > > I am trying to get the code of the Kruskal-Wallis test but > > > > kruskal.test > > > function (x, ...) > > > UseMethod("kruskal.test") > > > <environment: namespace:stats> > > > > > > > ls(3) > > > [1] "acf" "acf2AR" "add.scope" > > > .............. > > > [181] "kruskal.test" "ks.test" "ksmooth" > > > ....................... > > > [475] "window<-" "write.ftable" "xtabs" > > > > > > > class(kruskal.test) > > > [1] "function" > > > > > > > getS3method("kruskal.test","function") > > > Error in getS3method("kruskal.test", "function") : > > > S3 method kruskal.test.function not found > > > > > > > getS3method("stats::kruskal.test","function") > > > Error in getS3method("stats::kruskal.test", "function") : > > > no function 'stats::kruskal.test' could be found > > > > > > > I searched the archives and the answer was ' use > > getS3method ' . The > > > help for getS3method is > getS3method(f,class,optional=FALSE) so I am > > > lost Can somebody tell me how to get the source listing of > > > kruskal.test or of any other hidden function? Thanks > > > Heberto Ghezzo > > > Meakins-Christie Labs > > > Canada > > > > > > ______________________________________________ > > > R-help at stat.math.ethz.ch mailing list > > > https://stat.ethz.ch/mailman/listinfo/r-help > > > PLEASE do read the posting guide! > > > http://www.R-project.org/posting-guide.html > > > > > > > ______________________________________________ > > R-help at stat.math.ethz.ch mailing list > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read > > the posting guide! http://www.R-project.org/posting-guide.html > > > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > >
> -----Urspr?ngliche Nachricht----- > Von: Liaw, Andy [mailto:andy_liaw at merck.com] > Gesendet: Montag, 17. J?nner 2005 16:33 > An: TEMPL Matthias; r-help at stat.math.ethz.ch > Betreff: RE: [R] find source code > > > > From: TEMPL Matthias > > > > But how can I see the *documented* source code in Windows? I > > think i.e. > > in the /flexmix/library/man/all.rda file is the > documented(?) code for > > all functions of Package flexmix, but the standard Windows XP cannot > > open .rda files correct. > > > > Is there a way to read the documented source code of a > function under > > Windows and R2.0.1? > > Do you mean `commented' rather than `documented' (i.e., > having a help page)? If so, I believe the only guaranteed way > of doing that is by getting the package _source_ (i.e., the > .tar.gz file) from CRAN and read the file in the R/ > subdirectory after unpacking. This has nothing to do with > hardware/software platform. >Sorry for my poor english and thank you for your quick replies! I have meant the `commented' source code. Now I know that the commented source code is findable in the (unpacked) ..tar.gz file and not in the .zip file. Thank you very much, Matthias> > .rda files are really only readable by R, regardless of > platform, and R on Windows doesn't behave differently than on > other OS in this respect. > > Andy > > > > Thanks in advance, > > Matthias > > > > > > > Betreff: Re: [R] find source code > > > > > > > > > stats:::kruskal.test.default > > > > > > On Mon, 17 Jan 2005 r.ghezzo at staff.mcgill.ca wrote: > > > > > > > I am using R 2.0.2 on a WinXP > > > > I am trying to get the code of the Kruskal-Wallis test but > > > > > kruskal.test > > > > function (x, ...) > > > > UseMethod("kruskal.test") > > > > <environment: namespace:stats> > > > > > > > > > ls(3) > > > > [1] "acf" "acf2AR" "add.scope" > > > > .............. > > > > [181] "kruskal.test" "ks.test" "ksmooth" > > > > ....................... > > > > [475] "window<-" "write.ftable" "xtabs" > > > > > > > > > class(kruskal.test) > > > > [1] "function" > > > > > > > > > getS3method("kruskal.test","function") > > > > Error in getS3method("kruskal.test", "function") : > > > > S3 method kruskal.test.function not found > > > > > > > > > getS3method("stats::kruskal.test","function") > > > > Error in getS3method("stats::kruskal.test", "function") : > > > > no function 'stats::kruskal.test' could be found > > > > > > > > > I searched the archives and the answer was ' use > > > getS3method ' . The > > > > help for getS3method is > > getS3method(f,class,optional=FALSE) so I am > > > > lost Can somebody tell me how to get the source listing of > > > > kruskal.test or of any other hidden function? Thanks > > > > Heberto Ghezzo > > > > Meakins-Christie Labs > > > > Canada > > > > > > > > ______________________________________________ > > > > R-help at stat.math.ethz.ch mailing list > > > > https://stat.ethz.ch/mailman/listinfo/r-help > > > > PLEASE do read the posting guide! > > > > http://www.R-project.org/posting-guide.html > > > > > > > > > > ______________________________________________ > > > R-help at stat.math.ethz.ch mailing list > > > https://stat.ethz.ch/mailman/listinfo/r-help > > > PLEASE do read > > > the posting guide! http://www.R-project.org/posting-guide.html > > > > > > > ______________________________________________ > > R-help at stat.math.ethz.ch mailing list > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide! > > http://www.R-project.org/posting-guide.html > > > > > > > -------------------------------------------------------------- > ---------------- > Notice: This e-mail message, together with any attachments, > contains information of Merck & Co., Inc. (One Merck Drive, > Whitehouse Station, New Jersey, USA 08889), and/or its > affiliates (which may be known outside the United States as > Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as > Banyu) that may be confidential, proprietary copyrighted > and/or legally privileged. It is intended solely for the use > of the individual or entity named on this message. If you > are not the intended recipient, and have received this > message in error, please notify us immediately by reply > e-mail and then delete it from your system. > -------------------------------------------------------------- > ---------------- >