Re: [Rd] How to suppress 'Loading required package ...' via Depends/Imports

2007-04-27 Thread Dirk Eddelbuettel
On 27 April 2007 at 09:54, Dirk Eddelbuettel wrote: | On Fri, Apr 27, 2007 at 09:47:19AM -0500, Dirk Eddelbuettel wrote: | > On Fri, Apr 27, 2007 at 03:10:42PM +0100, Prof Brian Ripley wrote: | > Lastly, a nit: it doesn't _fully_ do it as it still issues a | > | > Loading required package: me

Re: [Rd] R-2.5.0 install

2007-04-27 Thread Seth Falcon
Prof Brian Ripley <[EMAIL PROTECTED]> writes: > Indeed it is. The package has > > .First.lib <- function(lib, pkgname, where) { > ## load the compiled code > library.dynam(pkgname, pkgname, lib) > > and that should be > > library.dynam("matchprobes", pkgname, lib) Thanks! I've fixed this f

[Rd] Namespace dependencies not required:

2007-04-27 Thread Paul Gilbert
I would like to suggest a wording change in the message * checking package dependencies ... ERROR Namespace dependencies not required: DBI methods Since the intended meaning seem to be almost exactly the opposite (I think, judging by what seems to work), it would be better to say Namespace de

Re: [Rd] R-2.5.0 install

2007-04-27 Thread Prof Brian Ripley
On Fri, 27 Apr 2007, Seth Falcon wrote: > Update: > > Seth Falcon <[EMAIL PROTECTED]> writes: >> And for me it does. > > Almost. With a clean package library, I end up with an error > installing matchprobes because library.dynam can't find a shared > library called matchprobes_1.8.0. Since other

Re: [Rd] parsing difference between 2.4.1 and 2.5.0

2007-04-27 Thread Gabor Grothendieck
Thanks, that did it. On 4/27/07, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > On 4/27/2007 11:34 AM, Gabor Grothendieck wrote: > > I noticed the following difference in parse(text = ...) between R > > 2.4.1 and R 2.5.0. > > > > === > > > >> parse(text = "\"^\" (x ,2 )") > > expression(x^2) > >> R.v

Re: [Rd] parsing difference between 2.4.1 and 2.5.0

2007-04-27 Thread Duncan Murdoch
On 4/27/2007 12:55 PM, Duncan Murdoch wrote: > On 4/27/2007 11:34 AM, Gabor Grothendieck wrote: >> I noticed the following difference in parse(text = ...) between R >> 2.4.1 and R 2.5.0. >> >> === >> >>> parse(text = "\"^\" (x ,2 )") >> expression(x^2) >>> R.version.string >> [1] "R version 2.4.1

Re: [Rd] R-2.5.0 install

2007-04-27 Thread Seth Falcon
Update: Seth Falcon <[EMAIL PROTECTED]> writes: > And for me it does. Almost. With a clean package library, I end up with an error installing matchprobes because library.dynam can't find a shared library called matchprobes_1.8.0. Since other packages that have native code are installing with ve

Re: [Rd] parsing difference between 2.4.1 and 2.5.0

2007-04-27 Thread Duncan Murdoch
On 4/27/2007 11:34 AM, Gabor Grothendieck wrote: > I noticed the following difference in parse(text = ...) between R > 2.4.1 and R 2.5.0. > > === > >> parse(text = "\"^\" (x ,2 )") > expression(x^2) >> R.version.string > [1] "R version 2.4.1 Patched (2006-12-30 r40331)" > > > > >> parse(t

Re: [Rd] R-2.5.0 install

2007-04-27 Thread Seth Falcon
Sean Davis <[EMAIL PROTECTED]> writes: > Anna Lobley wrote: >> I am receiving the following errors when trying to install >> gcrma and a number of other Bioconductor packages when >> the installWithVers flag is set to be TRUE. >> >> >source("http://www.bioconductor.org/getBioC.R";); >> >getBioC(

Re: [Rd] system() in packages

2007-04-27 Thread Prof Brian Ripley
You have missed the point completely. There is no way you can use the same command on a Unix-alike and Windows, so using system() in packages always needs to be conditionalized on OS. If you want to use a shell on Windows, use shell(): you can even use bash with it (but startup will be really sl

[Rd] parsing difference between 2.4.1 and 2.5.0

2007-04-27 Thread Gabor Grothendieck
I noticed the following difference in parse(text = ...) between R 2.4.1 and R 2.5.0. === > parse(text = "\"^\" (x ,2 )") expression(x^2) > R.version.string [1] "R version 2.4.1 Patched (2006-12-30 r40331)" > parse(text = "\"^\" (x ,2 )") expression("^" (x ,2 )) > R.version.string [1] "R v

Re: [Rd] system() in packages

2007-04-27 Thread Gabor Grothendieck
One can use the R shell on Windows: shell("echo foo.bar | findstr foo") or an explicit call to the Windows cmd console: system("cmd /c echo foo.bar | findstr foo") On 4/27/07, Tony Plate <[EMAIL PROTECTED]> wrote: > With cygwin bash installed under Windows, one can use pipes in system(),

Re: [Rd] R-2.5.0 install

2007-04-27 Thread Sean Davis
Anna Lobley wrote: > I am receiving the following errors when trying to install > gcrma and a number of other Bioconductor packages when > the installWithVers flag is set to be TRUE. > > >source("http://www.bioconductor.org/getBioC.R";); > >getBioC("gcrma", installWithVers=T); > Hi, Anna. You

Re: [Rd] system() in packages

2007-04-27 Thread Tony Plate
With cygwin bash installed under Windows, one can use pipes in system(), e.g., like this: R 2.5.0 under Windows XP: > system("echo foo | sed s/foo/bar/") # this doesn't work under windows foo | sed s/foo/bar/ > # but using 'bash -c' does: > system("bash -c \"echo foo | sed s/foo/bar/\"") bar

[Rd] Error: An unusual circumstance has arisen in the nesting of readline input

2007-04-27 Thread Gad Abraham
Hi, If I have warnings converted to errors, and if I plot a simple plot and then resize and move the plot's window many times, I eventually get an error "Display list redraw incomplete", and after a while an endlessly repeating error "An unusual circumstance has arisen in the nesting of readli

Re: [Rd] system() in packages

2007-04-27 Thread Seth Falcon
Robin Hankin <[EMAIL PROTECTED]> writes: > My question is, how to deal with the possibility that pari/gp is not > installed? You could add a configure script to your package to detect the availability of the tools you want to rely on. On package load, you could try a simple call and determine whe

[Rd] R-2.5.0 install

2007-04-27 Thread Anna Lobley
I am receiving the following errors when trying to install gcrma and a number of other Bioconductor packages when the installWithVers flag is set to be TRUE. >source("http://www.bioconductor.org/getBioC.R";); >getBioC("gcrma", installWithVers=T); Running biocinstall version 2.0.7 with R version

Re: [Rd] How to suppress 'Loading required package ...' via Depends/Imports

2007-04-27 Thread Dirk Eddelbuettel
On Fri, Apr 27, 2007 at 09:47:19AM -0500, Dirk Eddelbuettel wrote: > On Fri, Apr 27, 2007 at 03:10:42PM +0100, Prof Brian Ripley wrote: > Lastly, a nit: it doesn't _fully_ do it as it still issues a > > Loading required package: methods > > when invoked... But I guess I may as well load meth

Re: [Rd] How to suppress 'Loading required package ...' via Depends/Imports

2007-04-27 Thread Dirk Eddelbuettel
On Fri, Apr 27, 2007 at 03:10:42PM +0100, Prof Brian Ripley wrote: > See ?suppressMessages > > I did: > > >suppressPackageStartupMessages(library("mboost")) > > and saw no messages at all in 2.5.0. (And that is one of the noisiest.) Oh, dang, and I know you had in fact told me about this befor

Re: [Rd] system() in packages

2007-04-27 Thread Prof Brian Ripley
The first comment is that will only work on Unix-alikes, since '|' needs a shell. So, if this is on a Unix-alike you need to establish if the program is in the path at run time and cache the result. I have no idea if this would actually work, but for example system('gp --version') might provid

[Rd] system() in packages

2007-04-27 Thread Robin Hankin
Hello Quite often I need higher precision, or larger numbers, than IEEE double precision allows. One strategy I sometimes use is to use system() to call pari/gp, which is not constrained by IEEE. [pari/gp is a GPL high-level mathematical programming language geared towards pure mathematics]

Re: [Rd] How to suppress 'Loading required package ...' via Depends/Imports

2007-04-27 Thread Prof Brian Ripley
See ?suppressMessages I did: > suppressPackageStartupMessages(library("mboost")) and saw no messages at all in 2.5.0. (And that is one of the noisiest.) On Fri, 27 Apr 2007, Dirk Eddelbuettel wrote: > > I tend to run batch jobs via littler. These often start with a single line > loading one

[Rd] How to suppress 'Loading required package ...' via Depends/Imports

2007-04-27 Thread Dirk Eddelbuettel
I tend to run batch jobs via littler. These often start with a single line loading one or two in-house packages. Now, most the Depends of these in-house packages now use Depends: entries in DESCRIPTION, rather than require() in R/zzz.R. This seems to have at least one undesirable side effect: no

Re: [Rd] Problem with formatted xtable in R 2.5.0

2007-04-27 Thread Pfaff, Bernhard Dr.
>I get the same behaviour in 2.4.1 with xtable 1.4-3. Have you >perhaps updated 'xtable' as well as R and are blaming R for an >'xtable' >change? As ?print.xtable says > > From version 1.4-3, all non-numeric columns are >sanitized, and all > LaTeX special characters are sanitised fo

Re: [Rd] Problem with formatted xtable in R 2.5.0

2007-04-27 Thread Prof Brian Ripley
On Fri, 27 Apr 2007, Pfaff, Bernhard Dr. wrote: > Dear R-Devel subscriber, > > I encountered the following problem for tex-formatted table with > xtable(). Suppose I do want the following matrix as a table in LaTeX: > > library(xtable) > a11 <- "\\color{green}\\textbf{big green}" > a21 <- "\\colo

[Rd] Problem with formatted xtable in R 2.5.0

2007-04-27 Thread Pfaff, Bernhard Dr.
Dear R-Devel subscriber, I encountered the following problem for tex-formatted table with xtable(). Suppose I do want the following matrix as a table in LaTeX: library(xtable) a11 <- "\\color{green}\\textbf{big green}" a21 <- "\\color{red}\\textbf{big red}" a12 <- "\\color{green}green" a22 <- "\

[Rd] a taste of regex in `[.data.frame`

2007-04-27 Thread Romain Francois
Hello, I am often asked how to filter lines from a data frame, like for example get all the Mazda cars from mtcars, so that usually does the trick: R> mtcars[ grep("Mazda", rownames(mtcars)) , ] but, what about using a formula in `[.data.frame` to make that sort of code meaningful: # rownames