Re: [Rd] [R] Error loading libraries in MAC

2007-04-18 Thread Gregory Warnes
I have received a number of reports of problems with recent unversal Mac packages from CRAN when used with R 2.4.1. Has something in the build script changed? -G On Apr 18, 2007, at 4:49PM , Mayte Suarez-Farinas wrote: > Hi I just installed the gmodels package > and the installation was su

[Rd] Feature request for 'sprintf' optimization (PR#9621)

2007-04-18 Thread mwtoews
Full_Name: Michael Toews Version: R-devel and 2.4.1 OS: Debian etch and WindowsXP Submission from: (NULL) (142.58.206.114) This is a quick demonstration of the present time limitation of 'sprintf' on long vectors with a suggestion for significant optimization. First, consider a data.frame with n

[Rd] minor omissions re "special" windows file names (PR#9622)

2007-04-18 Thread tplate
"lpt1" through "lpt9" and "com1" through "com9" are in fact "special" file names under various versions of Microsoft Windows. However, "R Extensions" says only that "lpt1" through "lpt4" and "com1" through "com3" cannot be used as filenames, and "R CMD check" checks for just these filenames.

Re: [Rd] curious package behaviors under cross-build and/or between windows/unix

2007-04-18 Thread Hin-Tak Leung
Prof Brian D Ripley wrote: > On Wed, 18 Apr 2007, Hin-Tak Leung wrote: > >> Hi, >> >> I have gone back to cross-compiling again, and I have come to two >> curious issues: (I have native R under linux x86_64 and win32 R >> under wine) - both 2.4.1: >> >> (1) for a pure R package (i.e. no compiled c

Re: [Rd] curious package behaviors under cross-build and/or between windows/unix

2007-04-18 Thread Prof Brian D Ripley
On Wed, 18 Apr 2007, Hin-Tak Leung wrote: > Hi, > > I have gone back to cross-compiling again, and I have come to two > curious issues: (I have native R under linux x86_64 and win32 R > under wine) - both 2.4.1: > > (1) for a pure R package (i.e. no compiled code), win32 R would > happily load the

[Rd] curious package behaviors under cross-build and/or between windows/unix

2007-04-18 Thread Hin-Tak Leung
Hi, I have gone back to cross-compiling again, and I have come to two curious issues: (I have native R under linux x86_64 and win32 R under wine) - both 2.4.1: (1) for a pure R package (i.e. no compiled code), win32 R would happily load the unix version, but the unix version complains the cross-

Re: [Rd] typo in R-exts

2007-04-18 Thread Prof Brian Ripley
On Tue, 17 Apr 2007, Tony Plate wrote: > The actual behavior, as far as I can make out, is that all the files in > the 'tests' directory are copied, but not any subdirectories (which I > personally would have found useful). > > So, saying the "whole directory" is probably not accurate. I think it

Re: [Rd] format() applied to an NA character string (PR#9616)

2007-04-18 Thread ripley
On Wed, 18 Apr 2007, Peter Dalgaard wrote: > [EMAIL PROTECTED] wrote: >> I get strange results when I try to format() an NA character string. >> >> >>> x <- 'sometext' >>> x[1] <- NA >>> format(NA, width=32) # displays sensibly, right-justified >>> format(x,width=32) # displays sensibly, left-ju

Re: [Rd] Problem with: Vignette dependencies (\Vignet teDepends{} entries) must be contained in

2007-04-18 Thread Gregor Gorjanc
Gregor Gorjanc bfro.uni-lj.si> writes: > > Hello! > > I have just discovered a possible bug or lack of my knowledge. The last > option is not so uncommon and I decided to ask here before flooding the > bugs repository. > > Say I have a package test with vignette. Moving package directory to > s

Re: [Rd] args / formals on primitives

2007-04-18 Thread Thomas Friedrichsmeier
On Tuesday 17 April 2007 09:12, Prof Brian Ripley wrote: > On Mon, 16 Apr 2007, Thomas Friedrichsmeier wrote: [...] > > While at it, I was wondering, why > > > > formals(c) > > > > still returns NULL, in contrast. > > Because only closures have formals, the way things are defined. This > makes s

[Rd] Problem with: Vignette dependencies (\VignetteDepends{} entries) must be contained in

2007-04-18 Thread Gregor Gorjanc
Hello! I have just discovered a possible bug or lack of my knowledge. The last option is not so uncommon and I decided to ask here before flooding the bugs repository. Say I have a package test with vignette. Moving package directory to some other name, say test2, fails R CMD check with $ R CMD

Re: [Rd] format() applied to an NA character string (PR#9616)

2007-04-18 Thread Gregor Gorjanc
Peter Dalgaard biostat.ku.dk> writes: > This happens on Linux too, given slightly larger widths: > > R version 2.5.0 RC (2007-04-17 r41210) > > > x <- as.character(NA) > > format(x,width=64) I can confirm this on Linux also. > format(x,width=36) [1] "NA "

Re: [Rd] Performing Merge and Duplicated on very large files

2007-04-18 Thread Sean Davis
On Tuesday 17 April 2007 23:44, Eitan Rubin wrote: > Hi, > > I am working with very large matrices (>1 million records), and need to > 1. Join the files (can be achieved with Merge) > 2. Find lines that have the same value in some field (after the join) and > randomly sample 1 row. > > I am conce

Re: [Rd] format() applied to an NA character string (PR#9616)

2007-04-18 Thread Peter Dalgaard
[EMAIL PROTECTED] wrote: > I get strange results when I try to format() an NA character string. > > >> x <- 'sometext' >> x[1] <- NA >> format(NA, width=32) # displays sensibly, right-justified >> format(x,width=32) # displays sensibly, left-justified >> format(x,width=33) # displays "" >> f

[Rd] format() applied to an NA character string (PR#9616)

2007-04-18 Thread D . Wischik
I get strange results when I try to format() an NA character string. > x <- 'sometext' > x[1] <- NA > format(NA, width=32) # displays sensibly, right-justified > format(x,width=32) # displays sensibly, left-justified > format(x,width=33) # displays "" > format(x,width=36) # R exits abnormal