[Rd] stats:::biplot.prcomp: Scaling, typo in the help file?

2011-05-11 Thread Thaler, Thorn, LAUSANNE, Applied Mathematics
Dear all, From the documentation of biplot.prcomp: scale: The variables are scaled by 'lambda ^ scale' and the observations are scaled by 'lambda ^ (1-scale)' where 'lambda' are the singular values as computed by 'princomp'. From the source code of prcomp: lam -

[Rd] New code in R-devel: Rao score test for glm.

2011-05-11 Thread peter dalgaard
I have just committed some code to the r-devel branch to implement the Rao efficient score test. This is asymptotically equivalent to the LRT, but there is some indication that it might have better properties in smaller samples since it is based more directly on the distribution of the

[Rd] RCMD check fails on checkin installed package size

2011-05-11 Thread Stefan McKinnon Høj-Edwards
Hi, When I run RCMD check on my package, I receive the following error: C:\R-packages\AnnotationFuncsRCMD check --no-vignettes AnnotationFuncs * using log directory 'C:/R-packages/AnnotationFuncs/AnnotationFuncs.Rcheck' * using R version 2.13.0 (2011-04-13) * using platform: i386-pc-mingw32

Re: [Rd] RCMD check fails on checkin installed package size

2011-05-11 Thread Prof Brian Ripley
On Wed, 11 May 2011, Stefan McKinnon Høj-Edwards wrote: Hi, When I run RCMD check on my package, I receive the following error: C:\R-packages\AnnotationFuncsRCMD check --no-vignettes AnnotationFuncs * using log directory 'C:/R-packages/AnnotationFuncs/AnnotationFuncs.Rcheck' * using R version

Re: [Rd] Reference Classes copy(shallow=FALSE) unexpected behavior.

2011-05-11 Thread Hadley Wickham
2011/5/10 Manuel Castejón Limas manuel.caste...@unileon.es: Dear all, I've just discovered the 'Reference Classes'. In a previous attempt ---a year ago--- to re-implement in a Object Oriented fashion the AMORE package using S4 classes I strongly felt the need of such capability. It's great

Re: [Rd] New code in R-devel: Rao score test for glm.

2011-05-11 Thread Brett Presnell
Thanks for doing this Peter. I'll have to install the development version to try this out. One suggestion though. I'm pretty confident that plain old score test is a more common terminology than anything involving Rao's name (econometricians even call it the Lagrange multiplier test). In

Re: [Rd] New code in R-devel: Rao score test for glm.

2011-05-11 Thread Frank Harrell
Economists re-invented the Rao efficient score test, calling it the Lagrange multiplier test. Please check the history of this test. Rao's paper was published in 1947. That being said, score would be more consistent with the survival and rms packages. Frank Brett Presnell wrote: Thanks for

Re: [Rd] Reference Classes copy(shallow=FALSE) unexpected behavior.

2011-05-11 Thread Hadley Wickham
Hi Manuel, The source code for copy is short and pretty readable, so I'd encourage you to look at it: setRefClass(XXX)$copy Class method definition for method copy() function (shallow = FALSE) { def - .refClassDef value - new(def) vEnv - as.environment(value) selfEnv -

Re: [Rd] New code in R-devel: Rao score test for glm.

2011-05-11 Thread peter dalgaard
On May 11, 2011, at 15:10 , Brett Presnell wrote: Thanks for doing this Peter. I'll have to install the development version to try this out. One suggestion though. I'm pretty confident that plain old score test is a more common terminology than anything involving Rao's name

Re: [Rd] New code in R-devel: Rao score test for glm.

2011-05-11 Thread Peter Ehlers
On 2011-05-11 07:30, peter dalgaard wrote: On May 11, 2011, at 15:10 , Brett Presnell wrote: Thanks for doing this Peter. I'll have to install the development version to try this out. One suggestion though. I'm pretty confident that plain old score test is a more common terminology than

Re: [Rd] New code in R-devel: Rao score test for glm.

2011-05-11 Thread Brett Presnell
I agree that homage is nice, but I really think you'll get more confusion from Rao than you would from score. You could always label the column some other way, right? I mean, it doesn't have to be exactly the same as the option. FWIW, I also have another vote for score from Alan Agresti, the

Re: [Rd] Reference Classes copy(shallow=FALSE) unexpected behavior.

2011-05-11 Thread John Chambers
Good suggestion for this case. But the general problem is tricky. What about reference objects contained in attributes or slots of other objects, etc? What is needed for total copying is a switch in the low-level duplication code that says to copy reference objects. It's also possible

[Rd] How to document man/*.Rd pages with images?

2011-05-11 Thread Sean Robert McGuffee
Hi, I¹m trying to figure out how to put images into my package¹s help documentation. I¹ve gotten to the point where I can put the images in the /inst/doc/ directory. I have also gotten to the point where I have package checks without any warnings. I couldn¹t find the terms ³picture,² ³image,² or

Re: [Rd] How to document man/*.Rd pages with images?

2011-05-11 Thread Dan Tenenbaum
On Wed, May 11, 2011 at 12:08 PM, Sean Robert McGuffee sean.mcguf...@gmail.com wrote: Hi, I¹m trying to figure out how to put images into my package¹s help documentation. I¹ve gotten to the point where I can put the images in the /inst/doc/ directory. I have also gotten to the point where I

Re: [Rd] How to document man/*.Rd pages with images?

2011-05-11 Thread Sean Robert McGuffee
On 5/11/11 3:13 PM, Dan Tenenbaum dtene...@fhcrc.org wrote: On Wed, May 11, 2011 at 12:08 PM, Sean Robert McGuffee sean.mcguf...@gmail.com wrote: Hi, I¹m trying to figure out how to put images into my package¹s help documentation. I¹ve gotten to the point where I can put the images in the

Re: [Rd] How to document man/*.Rd pages with images?

2011-05-11 Thread Hadley Wickham
I¹m trying to figure out how to put images into my package¹s help documentation. I¹ve gotten to the point where I can put the images in the /inst/doc/ directory. I have also gotten to the point where I have package checks without any warnings. I couldn¹t find the terms ³picture,² ³image,² or

Re: [Rd] How to document man/*.Rd pages with images?

2011-05-11 Thread Thomas Roth
Hi, There's a possibility to put images into documentation files. Have a look at the package visualizationTools to see how it works. The original idea is/was by Romain Francois as far as i remember. For instance have a look at the documentation for the function CLT HTH Thomas 2011/5/11 Hadley

Re: [Rd] How to document man/*.Rd pages with images?

2011-05-11 Thread Simon Urbanek
On May 11, 2011, at 4:00 PM, Thomas Roth wrote: Hi, There's a possibility to put images into documentation files. Have a look at the package visualizationTools to see how it works. The original idea is/was by Romain Francois as far as i remember. For instance have a look at the

Re: [Rd] How to document man/*.Rd pages with images?

2011-05-11 Thread Thomas Roth
Well, it takes 5 seconds on a regular notebook... which i have Basically there's small simulation going on, so if you don't need any simulation just a small plot it will go in less then a second. Haven't seen any other solution :-) it only takes long because there's a simulation going on in the

Re: [Rd] How to document man/*.Rd pages with images?

2011-05-11 Thread Paul Gilbert
I thought the usual logic was that you might put graphs and images into a vignette, and you might refer to the vignette in an Rd help file, but you would not put the graphs into the help because ? access to the page cannot assume that you actual have a graphics device. Of course, examples in

Re: [Rd] How to document man/*.Rd pages with images?

2011-05-11 Thread Simon Urbanek
On May 11, 2011, at 4:16 PM, Thomas Roth wrote: Well, it takes 5 seconds on a regular notebook... which i have Basically there's small simulation going on, so if you don't need any simulation just a small plot it will go in less then a second. Haven't seen any other solution :-) Oh,

Re: [Rd] How to document man/*.Rd pages with images?

2011-05-11 Thread Thomas Roth
i got the original idea from http://romainfrancois.blog.free.fr/index.php?post/2010/04/03/embed-images-in-Rd-documents i really won't mind if this is removed. i can put a clean package online. Didn't mean to do any harm. Thomas 2011/5/11 Simon Urbanek simon.urba...@r-project.org On May 11,

Re: [Rd] How to document man/*.Rd pages with images?

2011-05-11 Thread Sean Robert McGuffee
On 5/11/11 4:20 PM, Paul Gilbert pgilb...@bank-banque-canada.ca wrote: I thought the usual logic was that you might put graphs and images into a vignette, and you might refer to the vignette in an Rd help file, but you would not put the graphs into the help because ? access to the page

Re: [Rd] How to document man/*.Rd pages with images?

2011-05-11 Thread Simon Urbanek
On May 11, 2011, at 4:43 PM, Thomas Roth wrote: i got the original idea from http://romainfrancois.blog.free.fr/index.php?post/2010/04/03/embed-images-in-Rd-documents i really won't mind if this is removed. i can put a clean package online. Didn't mean to do any harm. Well, except it

Re: [Rd] How to document man/*.Rd pages with images?

2011-05-11 Thread Duncan Murdoch
On 11/05/2011 4:35 PM, Simon Urbanek wrote: On May 11, 2011, at 4:16 PM, Thomas Roth wrote: Well, it takes 5 seconds on a regular notebook... which i have Basically there's small simulation going on, so if you don't need any simulation just a small plot it will go in less then a second.

Re: [Rd] How to document man/*.Rd pages with images?

2011-05-11 Thread Thomas Roth
Thank you for clarifying this We know there's no need to simulate at that point any more... we just had limited time since we used the package with our students, next version would be without simulation... but i guess next version will be without any image ;-). 2011/5/11 Simon Urbanek

Re: [Rd] How to document man/*.Rd pages with images?

2011-05-11 Thread Hadley Wickham
Oh, my ... it's worse than I thought. Not only does it run things so you have to wait forever - it actually installs packages behind your back!  Wow, now there is the nightmare abuse of \Sexpr - the malicious package retrieves private data from your machine and deletes your files... and I

Re: [Rd] Reference Classes copy(shallow=FALSE) unexpected behavior.

2011-05-11 Thread Hadley Wickham
But the general problem is tricky.  What about reference objects contained in attributes or slots of other objects, etc?  What is  needed for total copying is a switch in the low-level duplication code that says to copy reference objects.  It's also possible that one does NOT want all such

Re: [Rd] How to document man/*.Rd pages with images?

2011-05-11 Thread Paul Gilbert
No one is checking that there's not a function in ggplot2 that secretly sends me all your code and data ;) Well, it is open source so we could check it. Hopefully you are checking this yourself, because it would be a criminal offense to do that. ;) Paul

Re: [Rd] How to document man/*.Rd pages with images?

2011-05-11 Thread Sean Robert McGuffee
On 5/11/11 4:20 PM, Paul Gilbert pgilb...@bank-banque-canada.ca wrote: I thought the usual logic was that you might put graphs and images into a vignette, and you might refer to the vignette in an Rd help file, but you would not put the graphs into the help because ? access to the page