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
>
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
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
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
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", .
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
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
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")