Re: [Rd] optim bug (PR#9684)

2007-05-14 Thread Prof Brian Ripley
This is not a bug, but as documented on the help page: ...: Further arguments to be passed to 'fn' and 'gr'. Beware of partial matching to earlier arguments. You have partial matching to 'upper'. On Mon, 14 May 2007, [EMAIL PROTECTED] wrote: Full_Name: Christina Merz Version:

[Rd] R (PR#9686)

2007-05-14 Thread conyike1
Full_Name: Chiadi Onyike Version: 2.5 OS: Mac OS 10.4.9 Submission from: (NULL) (71.248.49.27) Every time I launch the program, I get the following message: 2007-05-15 01:10:00.959 Installer[2410] *** -[NSBundle load]: Error loading code /Users/chiadionyike/Library/InputManagers/SIMBL/SIMBL.bund

[Rd] XML parsing under R / Extracting nodes’ v alues

2007-05-14 Thread Abdelhakim z
Hi, I have an XML file which contains among other nodes : ===myXMLfile.xml=== (…) 2 2 (...) 5 2000 (…) ===End file=== I need to extract those values and to make them R variables such as: nbRelations = 2 nbActors = 2 nbRuns = 5 nbSteps = 2000 I read the help and have seen the examples of the xml

[Rd] read.table() can't read in this table (But Splus can) (PR#9685)

2007-05-14 Thread vax9000
Full_Name: vax, 9000 Version: 2.4.0, 2.2.1 OS: 2.4.0: Mac OS X; 2.2.1: Linux Submission from: (NULL) (192.35.79.70) To reproduce this bug, first go to the website "http://llmpp.nih.gov/DLBCL/"; and download the 14.8M data set "Web Figure 1 Data file". The direct link is "http://llmpp.nih.gov/DLBC

[Rd] Calling erf function in package NORMT3 produce a R crash on Linux/AMD opteron (PR#9683)

2007-05-14 Thread benjamin . leblanc
Full_Name: Benjamin Leblanc Version: 2.4.1 and 2.5.0 OS: Ubuntu Linux 7.04 AMD64 Submission from: (NULL) (195.83.84.213) Here is an example script that may crash under R with Linux AMD 64 bit platforms library('NORMT3') a <- 1:1000/1000 erf(a) I did several tests: - opensuse 10.2 x86_64 with R

[Rd] optim bug (PR#9684)

2007-05-14 Thread christina . merz
Full_Name: Christina Merz Version: R version 2.5.0 (2007-04-23) OS: mingw32 Submission from: (NULL) (213.70.209.132) R> version _ platform i386-pc-mingw32 arch i386 os mingw32

Re: [Rd] set_seed

2007-05-14 Thread Tong Wang
In this case, how do I choose numbers to make sure set_seed(n1,n2) and set.seed(n) produce the same result ? I am asking because my C code worked correctly if I compile it to produce .exe file and ran it , but it gave strange results if it is compiled to .dll file and dynamically loaded in

Re: [Rd] set_seed

2007-05-14 Thread Prof Brian Ripley
On Mon, 14 May 2007, Tong Wang wrote: > Hi, All: > It seemed set_seed is usable only when Rmath is used as a standalone > library, then what should I use when I need to link to R.dll. When you link to R.dll you are running R, so you can call set.seed() via eval or via do_setseed. -- Brian

Re: [Rd] RFC: allow packages to advertise vignettes on Windows

2007-05-14 Thread Seth Falcon
Duncan Murdoch <[EMAIL PROTECTED]> writes: > I'm interested in making vignettes more visible. Putting them on the > menu is not the only way, but since you're offering to do the work, I > think it's a good idea :-). Excellent :-) > A few questions: > > - Should packages need to take any action

Re: [Rd] RFC: allow packages to advertise vignettes on Windows

2007-05-14 Thread Duncan Murdoch
On 14/05/2007 7:15 PM, Seth Falcon wrote: > Hello, > > The vignette concept, which started in Bioconductor, seems to be > catching on. They are supported by R CMD build/check and documented > in the Writing R Extensions manual. I think vignettes are a fantastic > way to introduce new users to a

[Rd] set_seed

2007-05-14 Thread Tong Wang
Hi, All: It seemed set_seed is usable only when Rmath is used as a standalone library, then what should I use when I need to link to R.dll. Thanks . tong __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] RFC: allow packages to advertise vignettes on Windows

2007-05-14 Thread Seth Falcon
Hello, The vignette concept, which started in Bioconductor, seems to be catching on. They are supported by R CMD build/check and documented in the Writing R Extensions manual. I think vignettes are a fantastic way to introduce new users to a package. However, getting new users to realize that a

Re: [Rd] Best Practise

2007-05-14 Thread Seth Falcon
Tom McCallum <[EMAIL PROTECTED]> writes: > Hello, > > > Just a quick question on best practise. I am converting quite a bit of > legacy C code into R packages and have the following situation: > > (1) Legacy object with a double* array in, all over code so don't want to > change any more than

Re: [Rd] file separator inconsistencies on windows?

2007-05-14 Thread Prof Brian Ripley
On Mon, 14 May 2007, Ernest Turro wrote: > tempdir() on windows returns the path using "\\" as file separator. Yes, it is explicitly documented to. > But .Platform$file.sep returns "/". As a result, you get > inconsistencies like: > > > file.path(tempdir(), "foo") > > [1] "C:\\WINDOWS\\Temp\\Rtm

Re: [Rd] Native implementation of rowMedians()

2007-05-14 Thread Dirk Eddelbuettel
On 14 May 2007 at 14:31, Martin Maechler wrote: | However, I still think that quantiles (and statistics derived | from them) in general and medians in particular are under-used | by many user groups. For some useRs, speed can be an important | reason and for that I had made a big effort to provide

Re: [Rd] Native implementation of rowMedians()

2007-05-14 Thread Robert Gentleman
We did think about this a lot, and decided it was better to have something like rowQ, which really returns requested order statistics, letting the user manipulate them on the return for their own version of median, or other quantiles, was a better approach. I would be happy to have this in R it

Re: [Rd] Native implementation of rowMedians()

2007-05-14 Thread Martin Maechler
> "BDR" == Prof Brian Ripley <[EMAIL PROTECTED]> > on Mon, 14 May 2007 11:39:18 +0100 (BST) writes: BDR> On Mon, 14 May 2007, Henrik Bengtsson wrote: >> On 5/14/07, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: >>> >>> > Hi Henrik, >>> >> "HenrikB" == Henrik Ben

[Rd] file separator inconsistencies on windows?

2007-05-14 Thread Ernest Turro
tempdir() on windows returns the path using "\\" as file separator. But .Platform$file.sep returns "/". As a result, you get inconsistencies like: > file.path(tempdir(), "foo") [1] "C:\\WINDOWS\\Temp\\RtmpYEIXrb/foo" # Mix of \\ and / I'm not sure if this can cause problems but I thought I'

Re: [Rd] changing the mode of a factor (PR#9675)

2007-05-14 Thread ripley
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --27464147-942662499-1179141762=:28940 Content-Type: TEXT/PLAIN; CHARSET=ISO-8859-1; FORMAT=flowed Content-Transfer-Encoding: 8BIT Content-ID: <[EM

Re: [Rd] (PR#9676) dump function and compatibility of .RData files

2007-05-14 Thread ripley
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --27464147-1671525898-1179141186=:28940 Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8BIT On Fri, 11 May

Re: [Rd] round(#, digits=x) unreliable for x=2 (PR#9682)

2007-05-14 Thread Duncan Murdoch
On 13/05/2007 8:46 PM, [EMAIL PROTECTED] wrote: > Full_Name: Scott Wilkinson > Version: 2.3.1 > OS: WinXP Pro > Submission from: (NULL) (140.253.203.4) > > > In the example below round() does not report to the specified number of digits > when the last digit to be reported is zero: Compare behavi

Re: [Rd] Native implementation of rowMedians()

2007-05-14 Thread Prof Brian Ripley
On Mon, 14 May 2007, Henrik Bengtsson wrote: > On 5/14/07, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: >> >> > Hi Henrik, >> >> "HenrikB" == Henrik Bengtsson <[EMAIL PROTECTED]> >> >> on Sun, 13 May 2007 21:14:24 -0700 writes: >> > >> >HenrikB> Hi, >> >HenrikB> I've got a ver

Re: [Rd] Native implementation of rowMedians()

2007-05-14 Thread Henrik Bengtsson
On 5/14/07, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > On Mon, 14 May 2007, Martin Maechler wrote: > > > Hi Henrik, > >> "HenrikB" == Henrik Bengtsson <[EMAIL PROTECTED]> > >> on Sun, 13 May 2007 21:14:24 -0700 writes: > > > >HenrikB> Hi, > >HenrikB> I've got a version of ro

Re: [Rd] Native implementation of rowMedians()

2007-05-14 Thread Henrik Bengtsson
On 5/14/07, Martin Maechler <[EMAIL PROTECTED]> wrote: > Hi Henrik, > > "HenrikB" == Henrik Bengtsson <[EMAIL PROTECTED]> > > on Sun, 13 May 2007 21:14:24 -0700 writes: > > HenrikB> Hi, > HenrikB> I've got a version of rowMedians(x, na.rm=FALSE) for matrices > that > Henrik

[Rd] round(#, digits=x) unreliable for x=2 (PR#9682)

2007-05-14 Thread scott . wilkinson
Full_Name: Scott Wilkinson Version: 2.3.1 OS: WinXP Pro Submission from: (NULL) (140.253.203.4) In the example below round() does not report to the specified number of digits when the last digit to be reported is zero: Compare behaviour for 0.897575 and 0.946251. Ditto for signif(). The number of

Re: [Rd] (PR#9666) 'aggregate' should preserve level ordering of

2007-05-14 Thread ripley
On Tue, 8 May 2007, [EMAIL PROTECTED] wrote: > Full_Name: Lutz Prechelt > Version: 2.4.1 > OS: Windows XP > Submission from: (NULL) (160.45.111.67) > > > aggregate (from package stats) should preserve the > ordering of levels of factors it works on and also their > 'ordered' attribute if present.

Re: [Rd] grep with fixed=TRUE and ignore.case=TRUE

2007-05-14 Thread Prof Brian Ripley
On Fri, 11 May 2007, Petr Savicky wrote: > On Wed, May 09, 2007 at 06:41:23AM +0100, Prof Brian Ripley wrote: >> I suggest you collaborate with the person who replied that he thought this >> was a good idea to supply patches against the R-devel sources for >> scrutiny. > > A possible solution is t

Re: [Rd] Native implementation of rowMedians()

2007-05-14 Thread Prof Brian Ripley
On Mon, 14 May 2007, Martin Maechler wrote: > Hi Henrik, >> "HenrikB" == Henrik Bengtsson <[EMAIL PROTECTED]> >> on Sun, 13 May 2007 21:14:24 -0700 writes: > >HenrikB> Hi, >HenrikB> I've got a version of rowMedians(x, na.rm=FALSE) for matrices that >HenrikB> handles missing

[Rd] Best Practise

2007-05-14 Thread Tom McCallum
Hello, Just a quick question on best practise. I am converting quite a bit of legacy C code into R packages and have the following situation: (1) Legacy object with a double* array in, all over code so don't want to change any more than I have to. (2) Do something like: SEXP arrayT

Re: [Rd] Native implementation of rowMedians()

2007-05-14 Thread Martin Maechler
Hi Henrik, > "HenrikB" == Henrik Bengtsson <[EMAIL PROTECTED]> > on Sun, 13 May 2007 21:14:24 -0700 writes: HenrikB> Hi, HenrikB> I've got a version of rowMedians(x, na.rm=FALSE) for matrices that HenrikB> handles missing values implemented in C. It has been optimized for

Re: [Rd] relist, an inverse operator to unlist

2007-05-14 Thread Martin Maechler
Nice ideas, Gabor and Andrew. While I agree with Andrew that such a utility makes for nicer and considerably better maintainable code in examples like his, and I do like to provide "inverse operator functions" in R whenever sensible, OTOH, we have strived to keep R's "base" package as lean and cle

Re: [Rd] select.list() not on front of other windows

2007-05-14 Thread Prof Brian Ripley
That's a known problem with Windows: I think such widgets are not intended to be used in non-GUI applications. I've committed a workaround that seems to alleviate it. On Sun, 13 May 2007, Henrik Bengtsson wrote: > When calling > > select.list(letters[1:3]) > > in a fresh R session (R v2.4.1,