[Rd] Issue with NA value and Octave compatibility

2008-06-09 Thread David Bateman
Dear R developers, I'm an Octave developer in the process of implementing a single precision type in Octave and I have an issue with the NA value. The choice of NA value in Octave was made a few years back so that the high word of the NA value was 0x7ff0 and the low word was 0x07A2 for

[Rd] R and Gnumeric

2008-06-09 Thread Jean Bréfort
Hi, I just read the Embedding R in Gnumeric idea at http://www.r-project.org/SoC08/ideas.html. On my side, I intend to add as many statistics related plot types to the current gnumeric charting engine as possible. We already have boxplots and partial support for histograms. My immediate plans are

[Rd] Questions about building R extensions from C, data/ and man/, sbml file

2008-06-09 Thread Hang PHAN
Hi, I am building the package in R using R CMD build -force ./mypackage and check it using R CMD check ./mypackage However I have a problem when running the examples in the manual files. The problem is that I used a specifice type of file that is not table, thus I guess data() can't be use to

Re: [Rd] Questions about building R extensions from C, data/ and man/, sbml file

2008-06-09 Thread Prof Brian Ripley
Use system.file(). But please don't put your files in the data directory: as the manual says. The data subdirectory is for additional data files the package makes available for loading using data(). So if you put your data files in inst/sbml, your example becomes abc(fname =

Re: [Rd] Questions about building R extensions from C, data/ and man/, sbml file

2008-06-09 Thread Hang PHAN
Dear Prof. Ripley, It worked. Thank you very much for a useful tip. On Mon, Jun 9, 2008 at 12:56 PM, Prof Brian Ripley [EMAIL PROTECTED] wrote: Use system.file(). But please don't put your files in the data directory: as the manual says. The data subdirectory is for additional data files

Re: [Rd] R and Gnumeric

2008-06-09 Thread Peter Dalgaard
Jean Bréfort wrote: One other totally unrelated thing. We got recently a bug report about an incorrect R squared in gnumeric regression code (http://bugzilla.gnome.org/show_bug.cgi?id=534659). R (version 2.7.0) give the same result as Gnumeric as can be seen below: mydata -

Re: [Rd] Posting Guide - help.request() function?

2008-06-09 Thread Dr Heather Turner
Whilst it is a good idea to improve the posting guide, it seems to me that it would be useful to have a function along the lines of bug.report(), to help a potential questioner make sure they have done their homework and have the relevant information to put into a post to R-help. Even those

Re: [Rd] Posting Guide - help.request() function?

2008-06-09 Thread Gabor Grothendieck
That's an excellent idea. One other item that could be checkable would be if the user has the most recent versions of the packages involved in the query.Perhaps it could display the unupdated packages and ask the user if any of those are involved in the query. Probably needs to give fair

Re: [Rd] Posting Guide - help.request() function?

2008-06-09 Thread Dr Heather Turner
Thanks for the helpful tips and suggestions, I'll work them in. You get local versions of the documents on Unix too - RShowDoc() will do the trick. I'll post an updated version in due course, Heather Gabor Grothendieck wrote: That's an excellent idea. One other item that could be checkable

Re: [Rd] Makevars or congiure for multi platforms

2008-06-09 Thread Tadashi Kadowaki
Prof Ripley, I fixed and uploaded. However, it is still useful for development of a package that is close to R core, if Rconfig.h contains all definitions in config.h. If Rconfig contained all information, I didn't have to refer the private header directory. Regards, Tadashi Kadowaki 2008/6/9

Re: [Rd] Makevars or congiure for multi platforms

2008-06-09 Thread Prof Brian Ripley
On Tue, 10 Jun 2008, Tadashi Kadowaki wrote: Prof Ripley, I fixed and uploaded. However, it is still useful for development of a package that is close to R core, if Rconfig.h contains all definitions in config.h. If Rconfig contained all information, I didn't have to refer the private header

Re: [Rd] R CMD CHECK WARNING inappropriate for S4 method?

2008-06-09 Thread John Chambers
This one is subtle, and has mostly to do with namespace and imports, only secondarily to do with methods. Bear with a fairly long story. The description below is for a simple package P1 that imitates the pattern of imports in GSEABase. First, what's generating the warning? The function

[Rd] error with R 2.7.0 (PR#11609)

2008-06-09 Thread usickim
Full_Name: Usic Kim Version: 2.7.0. OS: Windows XP, Windows Vista Home ed. Submission from: (NULL) (203.255.173.162) I installed R 2.7.0 in my PC with Windows XP Professional (in the Korean language), and tried to start it by double-clicking the icon. I could see a wide rectangle appearing but

Re: [Rd] R CMD CHECK WARNING inappropriate for S4 method?

2008-06-09 Thread Martin Morgan
Thank you for the assistance. I moved graph from Imports to Depends (arguably appropriate anyway, as the reason for graph is that GSEABase defines setAs(..., graphNEL)) added importFrom(graph, union) to NAMESPACE, and removed setGeneric(union, ...) in GSEABase; union was already being exported

Re: [Rd] Posting Guide - help.request() function?

2008-06-09 Thread Martin Maechler
HT == Heather Turner [EMAIL PROTECTED] on Mon, 09 Jun 2008 17:21:17 +0100 writes: HT Thanks for the helpful tips and suggestions, I'll work HT them in. You get local versions of the documents on Unix HT too - RShowDoc() will do the trick. HT I'll post an updated version in

[Rd] Error in getClass when calling the function show

2008-06-09 Thread Laurent Gautier
Dear List, Calling show on an object of class summary.lm gives: Error in getClass(class(object)) : summary.lm is not a defined class Is this a miss on my end ? x - seq(1, 10) show(x) [1] 1 2 3 4 5 6 7 8 9 10 y - runif(10) fit - lm(y ~ x) show(fit) Call: lm(formula = y ~ x)