Re: [Rd] order() fails on a chr object of class "AsIs" with "\265" in it

2010-01-15 Thread Prof Brian Ripley
On Fri, 15 Jan 2010, Don MacQueen wrote: Here's an example (session info at the end). tmpv <- c('\265g/L','Bq/L') order(tmpv) [1] 2 1 tmpv <- I(tmpv) order(tmpv) Error in if (xi > xj) 1L else -1L : missing value where TRUE/FALSE needed foov <- gsub('\265','',tmpv) order(foov) [1] 2

[Rd] order() fails on a chr object of class "AsIs" with "\265" in it

2010-01-15 Thread Don MacQueen
Here's an example (session info at the end). tmpv <- c('\265g/L','Bq/L') order(tmpv) [1] 2 1 tmpv <- I(tmpv) order(tmpv) Error in if (xi > xj) 1L else -1L : missing value where TRUE/FALSE needed foov <- gsub('\265','',tmpv) order(foov) [1] 2 1 str(tmpv) Class 'AsIs' chr [1:2] "\26

Re: [Rd] Using multicore with an open pdf device results in corrupt pdf (PR#14186)

2010-01-15 Thread Manuel Koller
Well I guess there's no point in starting a discussion here. I can also do all calculations, gather the plots in a list before starting the pdf device and plot them later. But just to prove my point: the attached pdfs (generated in a clean session, on the system used to generate the bug report)

Re: [Rd] optional package dependency (suggestions/wishes)

2010-01-15 Thread Ross Boylan
On Fri, 2010-01-15 at 12:34 -0500, Simon Urbanek wrote: > > On Jan 15, 2010, at 12:18 , Ross Boylan wrote: > > > On Fri, 2010-01-15 at 09:19 +0100, Kurt Hornik wrote: > >> The idea is that maintainers typically want to > >> fully check their functionality, suggesting to force suggests by > >> def

Re: [Rd] optional package dependency (enhances)

2010-01-15 Thread Ross Boylan
On Fri, 2010-01-15 at 10:48 +, Benilton Carvalho wrote: > How about using: > > Enhances: Rmpi > > ? > > b The main reason is that "enhances" seems a peculiar way to describe the relation between a package that (optionally) uses a piece of infrastructure and the infrastructure. Similarly, I

Re: [Rd] Using multicore with an open pdf device results in corrupt pdf (PR#14186)

2010-01-15 Thread Simon Urbanek
How is this a bug in R? First, multicore is not R. Second, you're running multicore with GUI code loaded which it explicitly tells you that it won't work. Third, the code you provided does produce correct PDFs (tested on the same platform you provided) in a clean session (unsurprisingly).

Re: [Rd] optional package dependency

2010-01-15 Thread Simon Urbanek
On Jan 15, 2010, at 12:18 , Ross Boylan wrote: On Fri, 2010-01-15 at 09:19 +0100, Kurt Hornik wrote: The idea is that maintainers typically want to fully check their functionality, suggesting to force suggests by default. This might be the nub of the problem. There are different audiences, e

Re: [Rd] optional package dependency

2010-01-15 Thread Ross Boylan
On Fri, 2010-01-15 at 09:19 +0100, Kurt Hornik wrote: > The idea is that maintainers typically want to > fully check their functionality, suggesting to force suggests by > default. This might be the nub of the problem. There are different audiences, even for R CMD check. The maintainer probably w

Re: [Rd] optional package dependency

2010-01-15 Thread Thomas Lumley
On Fri, 15 Jan 2010, Seth Falcon wrote: There is a real need (of some kind) here. Not all packages work on all platforms. For example, the multicore package provides a mechanism for running parallel computations on a multi-cpu box, but it is not available on Windows. A package that _is_ avai

Re: [Rd] optional package dependency

2010-01-15 Thread Uwe Ligges
On 15.01.2010 16:22, Seth Falcon wrote: On 1/15/10 12:19 AM, Kurt Hornik wrote: Jeff Ryan writes: Hi Ross, The quantmod package makes available routines from a variety of contributed packages, but gets around your issues with a bit of, um, trickery. Take a look here (unless your name is

Re: [Rd] optional package dependency

2010-01-15 Thread Simon Urbanek
On Jan 15, 2010, at 10:22 , Seth Falcon wrote: On 1/15/10 12:19 AM, Kurt Hornik wrote: Jeff Ryan writes: Hi Ross, The quantmod package makes available routines from a variety of contributed packages, but gets around your issues with a bit of, um, trickery. Take a look here (unless your n

Re: [Rd] optional package dependency

2010-01-15 Thread Seth Falcon
On 1/15/10 12:19 AM, Kurt Hornik wrote: >> Jeff Ryan writes: > >> Hi Ross, >> The quantmod package makes available routines from a variety of >> contributed packages, but gets around your issues with a bit of, um, >> trickery. > >> Take a look here (unless your name is Kurt ;-) ): I believe

[Rd] Using multicore with an open pdf device results in corrupt pdf (PR#14186)

2010-01-15 Thread kollerma
The attached code produces corrupted pdfs (test2.pdf, test4.pdf and test5.pdf). The resulting pdf depends on how many cores are available on the machine. I don't see why there should be any difference between the pdfs (exept for the timestamp). Doing many operations involving mclapply can increas

Re: [Rd] adapt package missing because of licensing issue: fix?

2010-01-15 Thread Uwe Ligges
On 14.01.2010 23:25, Ben Bolker wrote: I think this is probably known by someone, but I wanted to ask/comment: The 'adapt' package has been removed from CRAN because of an 'unclear' license. That makes sense, but it actually took a bit of digging for me to discover that, and if I had be

Re: [Rd] optional package dependency

2010-01-15 Thread Benilton Carvalho
How about using: Enhances: Rmpi ? b On Fri, Jan 15, 2010 at 6:00 AM, Ross Boylan wrote: > I have a package that can use rmpi, but works fine without it. None of > the automatic test code invokes rmpi functionality. (One test file > illustrates how to use it, but has quit() as its first comma

Re: [Rd] optional package dependency

2010-01-15 Thread Kurt Hornik
> Jeff Ryan writes: > Hi Ross, > The quantmod package makes available routines from a variety of > contributed packages, but gets around your issues with a bit of, um, > trickery. > Take a look here (unless your name is Kurt ;-) ): But Kurt will we happy to tell you that you can turn off "fo