Re: [Rd] (PR#7199) function bug

2004-08-24 Thread rpeng
This is a misunderstanding, I think, not a bug. R is using partial matching and the `2', since it is not named, is being sent through the `...'. -roger [EMAIL PROTECTED] wrote: > output of R.version > platform i686-pc-linux-gnu > arch i686 > os linux-gnu > system i686, linux-gnu >

Re: [Rd] list.files fails with all.files = TRUE and recursive = TRUE (PR#7102)

2004-07-16 Thread rpeng
I get different behavior on Linux: system("mkdir newdir") dir("newdir", all.files = TRUE, recursive = TRUE) ## R hangs ## After hitting Ctrl-C There were 50 or more warnings (use warnings() to see the first 50) > dir("newdir", all.files = TRUE, recursive = TRUE) character(0) Warning message: lis

[Rd] Re: [R] constrOptim and function with additional parameters? (PR#7089)

2004-07-14 Thread rpeng
Okay, looking at the docs, then it's not a bug, since the "..." argument is not actually documented as "other arguments passed to f or grad". However, that *is* how it's document in `optim', so one can see how this might cause some confusion. Now, it's not clear to me which other arguments nee

[Rd] names in `getAnywhere' object don't match docs (PR#7082)

2004-07-12 Thread rpeng
Full_Name: Roger D. Peng Version: 1.9.1 OS: Linux (Fedora Core 1) Submission from: (NULL) (162.129.44.120) The docs for getAnywhere say: Value: An object of class '"getAnywhere"'. This is a list with components name: the name searched for. funs: a list of objects found

Re: [Rd] Saving Trellis Graphics in R 1.9.0. (PR#6915)

2004-06-03 Thread rpeng
An even simpler example that doesn't work for me (on Linux) is: library(lattice) xyplot(0 ~ 0) dev.copy2eps(file = "asdf.ps") The file `asdf.ps' is reproduced at the bottom. It appears blank when viewed in gv. What does work for me is to do trellis.device(dev = postscript, file = "asdf.ps", .

Re: [Rd] Saving Trellis Graphics in R 1.9.0. (PR#6915)

2004-05-29 Thread rpeng
Unfortunately, my example produces an empty Postscript file on Linux, even with a recent patched version. To be specific, the file is not actually empty, but appears blank when viewed in a previewer. I don't think I know enough about Postscript to report anything useful. -roger Liaw, Andy w

Re: [Rd] Saving Trellis Graphics in R 1.9.0. (PR#6915)

2004-05-26 Thread rpeng
Okay, here's one example that might reproduce this behavior. At least it doesn't work for me at the moment: library(lattice) trellis.device(dev = x11) set.seed(1); x <- rnorm(100); y <- rnorm(100) xyplot(y ~ x, panel = function(...) { panel.xyplot(...) ltext(0,0,labels = expressi

[Rd] Re: [R] No traceback available when using try(...) (PR#6668)

2004-03-12 Thread rpeng
Funny, it works for me on R-patched > f <- function(a) { return(log(a)) } > f("A") Error in log(x) : Non-numeric argument to mathematical function > traceback() 2: log(a) 1: f("A") > try(f("A")) Error in log(x) : Non-numeric argument to mathematical function > traceback() 2: log(a) 1: f("A")