Re: [Rd] file.copy

2007-01-16 Thread Henrik Bengtsson
FYI: I reported this to r-devel on July 23, 2006: http://tolstoy.newcastle.edu.au/R/devel/06/07/6220.html There was no follow up. /Henrik On 1/17/07, Herve Pages <[EMAIL PROTECTED]> wrote: > Hi, > > Copying a non-existing file with file.copy creates an empty file > > > r <- file.copy("non-ex

[Rd] file.copy

2007-01-16 Thread Herve Pages
Hi, Copying a non-existing file with file.copy creates an empty file > r <- file.copy("non-existing-file", ".") > r [1] TRUE ... and returns TRUE! Now, when used in "vectorized" mode > r <- file.copy(c("toto1", "toto2"), c("dest1", "dest2")) [1] FALSE FALSE file.copy looks much more

Re: [Rd] Problems with checking documentation vs data, and a proposal

2007-01-16 Thread Ross Boylan
On Tue, 2007-01-16 at 14:03 -0800, Ross Boylan wrote: > I have a single data file inputs.RData that contains 3 objects. I > generated an Rd page for each object using prompt(). > When I run R CMD check I get > * checking for code/documentation mismatches ... WARNING > Warning in utils::data(list =

Re: [Rd] on.exit called on loading ?

2007-01-16 Thread Dirk Eddelbuettel
On 16 January 2007 at 16:39, Duncan Murdoch wrote: | On 1/16/2007 4:02 PM, Dirk Eddelbuettel wrote: | > I just found out that an .onLoad() function such as this stylized one (where | > I just renamed some identifiers) | > | > | > .onLoad <- function(lib, pkg) { | > require(zoo, quiet=TRUE, war

[Rd] Problems with checking documentation vs data, and a proposal

2007-01-16 Thread Ross Boylan
I have a single data file inputs.RData that contains 3 objects. I generated an Rd page for each object using prompt(). When I run R CMD check I get * checking for code/documentation mismatches ... WARNING Warning in utils::data(list = al, envir = data_env) : data set 'gold' not found (go

Re: [Rd] on.exit called on loading ?

2007-01-16 Thread Henrik Bengtsson
on.exit() applies to the function where it was called, i.e. closeSomeServices() is called when .onLoad() exits, or whatever function it is defined in. You're looking for .onUnload(). Make sure to read the help for details. Cheers Henrik On 1/17/07, Dirk Eddelbuettel <[EMAIL PROTECTED]> wrote:

Re: [Rd] on.exit called on loading ?

2007-01-16 Thread Duncan Murdoch
On 1/16/2007 4:02 PM, Dirk Eddelbuettel wrote: > I just found out that an .onLoad() function such as this stylized one (where > I just renamed some identifiers) > > > .onLoad <- function(lib, pkg) { > require(zoo, quiet=TRUE, warn.conflicts=FALSE) > library.dynam("foolib", pkg, lib ) > if (

[Rd] on.exit called on loading ?

2007-01-16 Thread Dirk Eddelbuettel
I just found out that an .onLoad() function such as this stylized one (where I just renamed some identifiers) .onLoad <- function(lib, pkg) { require(zoo, quiet=TRUE, warn.conflicts=FALSE) library.dynam("foolib", pkg, lib ) if (.Platform$OS.type != "windows") { initSomeServices() }

Re: [Rd] Why does not the command 'length(a <- 1:5) <- 4' not work?

2007-01-16 Thread Thomas Lumley
On Tue, 16 Jan 2007, Charles Dupont wrote: > I would assume that 'length(a <- 1:5) <- 4' should work because > 'length(a <- 1:5)' does work. Appearances can be deceptive. length(a <- 1:5) evaluates a <- 1:5 and then passes its value to length(), in ordinary call-by-value semantics. That can't

Re: [Rd] Why does not the command 'length(a <- 1:5) <- 4' not work?

2007-01-16 Thread Duncan Murdoch
On 1/16/2007 1:24 PM, Charles Dupont wrote: > when running the command > > length(a <- 1:5) <- 4 > > there are two responses. > > If 'a' does not exist then the response is > > Error in length(a <- 1:5) <- 4 : object "a" not found > > If 'a' does exist then the response is > > Error in lengt

Re: [Rd] incorrect result of deriv (PR#9449)

2007-01-16 Thread Thomas Lumley
This is as documented in help(deriv) The internal code knows about the arithmetic operators '+', '-', '*', '/' and '^', and the single-variable functions 'exp', 'log', 'sin', 'cos', 'tan', 'sinh', 'cosh', 'sqrt', 'pnorm', 'dnorm', 'asin', 'acos', 'atan', 'gamma' and 'lgamma

Re: [Rd] histbackback function code needs a change with R 2.4.1 (PR#9457)

2007-01-16 Thread ripley
On Tue, 16 Jan 2007, [EMAIL PROTECTED] wrote: > Dear Author and Maintainer of Hmisc contributed package, Wromg address, wrong bug repository. Both the R posting guide and the R FAQ warn you that what you have just done is a waste of resources. [...] -- Brian D. Ripley, [EMAI

[Rd] Why does not the command 'length(a <- 1:5) <- 4' not work?

2007-01-16 Thread Charles Dupont
when running the command > length(a <- 1:5) <- 4 there are two responses. If 'a' does not exist then the response is Error in length(a <- 1:5) <- 4 : object "a" not found If 'a' does exist then the response is Error in length(a <- 1:5) <- 4 : could not find function "<-<-" I would assume th

[Rd] histbackback function code needs a change with R 2.4.1 version (PR#9456)

2007-01-16 Thread MATILDE . TREVISANI
Dear Author and Maintainer of Hmisc contributed package, Dear R developers, i noticed a problem with histbackback routine when i installed the last version of R (2.4.1) (With my previous version, 2.3.1, there was no such a problem) If, e.g., you simply edit the command > histbackback(rnorm(2

Re: [Rd] mingw-cross with R 2.4.x Re: wine and build difference between R.2.4.0 and R 2.4.1 windows binaries?

2007-01-16 Thread Hin-Tak Leung
Prof Brian Ripley wrote: > On Tue, 16 Jan 2007, Hin-Tak Leung wrote: > >> Hin-Tak Leung wrote: >> >>> The issue is filed as http://bugs.winehq.org/show_bug.cgi?id=7181 >> >> One of the main wine developers, Alexandre Julliard, closed the bug >> with a patch. I'll patch my wine and see... pretty g

Re: [Rd] mingw-cross with R 2.4.x Re: wine and build difference between R.2.4.0 and R 2.4.1 windows binaries?

2007-01-16 Thread Prof Brian Ripley
On Tue, 16 Jan 2007, Hin-Tak Leung wrote: > Hin-Tak Leung wrote: > >> The issue is filed as http://bugs.winehq.org/show_bug.cgi?id=7181 > > One of the main wine developers, Alexandre Julliard, closed the bug > with a patch. I'll patch my wine and see... pretty good going to resolve > a bug within

Re: [Rd] mingw-cross with R 2.4.x Re: wine and build difference between R.2.4.0 and R 2.4.1 windows binaries?

2007-01-16 Thread Hin-Tak Leung
Hin-Tak Leung wrote: > The issue is filed as http://bugs.winehq.org/show_bug.cgi?id=7181 One of the main wine developers, Alexandre Julliard, closed the bug with a patch. I'll patch my wine and see... pretty good going to resolve a bug within a day...(if the patch works). ___

Re: [Rd] Wishlist: Sweave: allow line breaks after forward slashes (PR#9444)

2007-01-16 Thread Duncan Murdoch
On 1/16/2007 5:26 AM, Arne Henningsen wrote: > On Tuesday 16 January 2007 05:22, Duncan Murdoch wrote: >> On 1/15/2007 5:43 PM, Arne Henningsen wrote: >>> On Monday, 15. January 2007 18:44, Duncan Murdoch wrote: On 1/15/2007 11:23 AM, Arne Henningsen wrote: > [...] > I prefer to use "k

Re: [Rd] Wishlist: Sweave: allow line breaks after forward slashes (PR#9444)

2007-01-16 Thread Arne Henningsen
On Tuesday 16 January 2007 05:22, Duncan Murdoch wrote: > On 1/15/2007 5:43 PM, Arne Henningsen wrote: > > On Monday, 15. January 2007 18:44, Duncan Murdoch wrote: > >> On 1/15/2007 11:23 AM, Arne Henningsen wrote: > >>> [...] > >>> I prefer to use "keep.source=FALSE", because I generally like that

Re: [Rd] mingw-cross with R 2.4.x Re: wine and build difference between R.2.4.0 and R 2.4.1 windows binaries?

2007-01-16 Thread Hin-Tak Leung
Hin-Tak Leung wrote: > Hin-Tak Leung wrote: > > - I needed to copy R/src/intl and R/src/extra/pcre from 2.4.1 to 2.4.0 > to get the older R 2.4.0 to build against newer mingw. Since I had to copy a few files from 2.4.1 to 2.4.0 for the older version of build, I thought I need to be 100% sure t

[Rd] R 2.4.0 @ R-project.org

2007-01-16 Thread Torsten Hothorn
R-project.org' News section still has R version 2.4.0 has been released on 2006-10-03. Best wishes, Torsten __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel