[Rd] attributes of S4 objects

2006-09-13 Thread Parlamis Franklin
I am having a bit of a struggle deciding when to use attributes with S4 objects. Clearly the 'class' attribute will always be present. But it is not clear to me whether the architects of the methods package intend that other attributes, such as 'names', will still be used when the S4 impl

[Rd] R-devel: rownames of a data.frame

2006-09-13 Thread Gregor Gorjanc
Hello! Data.frames have new rownames funcionality, however in use of colnames<- in R-devel "changes" this. Here is the example: > df1 <- data.frame(letters[1:5]) > attributes(df1) $names [1] "letters.1.5." $row.names [1] 1 2 3 4 5 $class [1] "data.frame" > colnames(df1) <- "bla" > attributes(d

Re: [Rd] demo names with spaces?

2006-09-13 Thread Prof Brian D Ripley
There are two issues here: 1) file names with spaces are not supported, and indeed you cannot install such a package on Windows. Because make is used, this is pretty fundamental. 2) The parsing code for 00Index used by 'check' assumes whitespace separates the name and the title. In index files

[Rd] demo names with spaces?

2006-09-13 Thread Dominick Samperi
Does R support demo names with spaces? I tried placing a file like "My Demo Name.R" in the demo subdirectory, and placing a line that begins with "My Demo Name" in 00Index, but R CMD check does not like this. It reads the line in 00Index as "My, and it doesn't think there is a 00Index entry for "M

Re: [Rd] S4 Method dispatch in recent 2.4.0alpha

2006-09-13 Thread Oosting, J. \(PATH\)
I have tried it on the patched version of R, and it works now. Thanks, Jan Van: John Chambers [mailto:[EMAIL PROTECTED] Although there is not enough information to be sure, this may be related to an issue uncovered in other testing, for which a patch has ju

Re: [Rd] S4 Method dispatch in recent 2.4.0alpha

2006-09-13 Thread John Chambers
Although there is not enough information to be sure, this may be related to an issue uncovered in other testing, for which a patch has just been committed. The issue arises if the same generic function is defined in several packages. For example, Matrix and msbase both have methods for the p

[Rd] Dringend, GESCHAEFTSVORSCHLAG. (PR#92 23)

2006-09-13 Thread jbakker
Dringend, GESCHAEFTSVORSCHLAG.=0D=0A=0D=0AMein Name ist Jesen Bakker und = ich bin der Leiter des Corporate Affairs Committee in der South African R= eserve Bank in S=FCdafrika. Zur Zeit halte ich mich in den Niederlanden z= u einer Fortbildung auf. Ich kontaktiere Sie bez=FCglich des Transfers ei=

Re: [Rd] package.skeleton() in R-2.4.1

2006-09-13 Thread Prof Brian Ripley
The issue here is the incomplete deparsing of S4 objects in pre-2.4.0. I am really not sure you want to make a package this way: rather I would want the setClass etc calls in the package code. On Tue, 12 Sep 2006, Robin Hankin wrote: > Hi > > R version 2.4.0 alpha (2006-09-06 r39158) > MacOSX

[Rd] No more autload() calls in .First.sys() ?

2006-09-13 Thread Jeffrey Horner
Jeffrey Horner wrote: [...] > This raises an interesting topic for me: > > In R-2.3.1, .First.sys() autloads() a few functions from the various > default packages (utils, stats, methods, graphics) IF those packages > weren't specified in the default packages option (or the environment > varia

Re: [Rd] Error: package/namespace load failed for 'fortunes'

2006-09-13 Thread Jeffrey Horner
Gregor Gorjanc wrote: > Hello! > > I have the following R code in my .Rprofile file - just for fun. > > library(fortunes) > fortune() > detach("package:fortunes") > > This works nicely in R 2.3.1, but it throws the following error under > latest R-devel: > > ... > ... > Type 'demo()' for

Re: [Rd] example(..., ask=getOption("example.ask"))

2006-09-13 Thread Prof Brian Ripley
And your point/question is? par(ask = TRUE) applies to all devices, including png. Try setting options(par.ask.default = FALSE in your example? On Wed, 13 Sep 2006, Henrik Bengtsson wrote: > Hi, > > I wish to return to the topic "[Rd] example(ask = .) - default ?" > discussed in R-devel on Ma

[Rd] [Fwd: Byte size in human readable format]

2006-09-13 Thread Gregor Gorjanc
Hello, I have looked once more into this issue and used options() approach with (yet another :() option - humanReadable. This is the behaviour in R-devel. > object.size(1000) [1] 32 > c(object.size(1000), object.size(1:1000), object.size(1:100)) [1] 324024 424 > options(humanRead

[Rd] example(..., ask=getOption("example.ask"))

2006-09-13 Thread Henrik Bengtsson
Hi, I wish to return to the topic "[Rd] example(ask = .) - default ?" discussed in R-devel on May 1, 2006, because I think it is related to my problem. In one of my Rd examples I generate multiple (20-30!) PNG files using png()/dev.off(). I noticed that I get a "Hit to see next plot:" for each

[Rd] Error: package/namespace load failed for 'fortunes'

2006-09-13 Thread Gregor Gorjanc
Hello! I have the following R code in my .Rprofile file - just for fun. library(fortunes) fortune() detach("package:fortunes") This works nicely in R 2.3.1, but it throws the following error under latest R-devel: ... ... Type 'demo()' for some demos, 'help()' for on-line help, or 'help.st

Re: [Rd] R Citation through time

2006-09-13 Thread Friedrich Leisch
> On Tue, 12 Sep 2006 21:22:13 +0300 (EEST), > Ioannis Dimakos (ID) wrote: > Forgive me for being naive, > but I have not seen any reference where the ISBN was required. The apa > style that I use does not require the ISBN. It is not required for most citation *styles*. The main re