[R] invisible() - does not return immediately as return() does

2006-08-11 Thread Matthias Burger
Hi, I stumbled across the following (unexpected for me) behavior after replacing a return() statement in the middle of a function by invisible(). Example: foo <- function() { cat("before\n"); return(); cat("after\n")} >foo() before NULL foo2 <- function() { cat("before\n"); invisible(TRUE); cat

Re: [R] behaviour of all(NULL == c("a", "b"))

2005-02-09 Thread Matthias Burger
2005, Matthias Burger wrote: Hi all, I'm a little surprised at NULL == c("a", "b") logical(0) all(NULL == c("a", "b")) [1] TRUE Reading the documentation for all() this was not clear for me to be expected. This is related to the question about sum(num

[R] behaviour of all(NULL == c("a", "b"))

2005-02-09 Thread Matthias Burger
r occurs in R 1.9.1 and R 2.1.0 devel: 2005-02-07 > version _ platform i686-pc-linux-gnu arch i686 os linux-gnu system i686, linux-gnu status major2 minor0.1 year 2004 month11 day 15 language R -- Matthias Burger Project Manager/ Bio

Re: [R] installing package with version number using namespaces & dynamic library

2004-08-04 Thread Matthias Burger
Prof Brian Ripley wrote: On Wed, 4 Aug 2004, Matthias Burger wrote: I wonder whether a package with namespace & dynamic library can be installed with the version number attached, ie. with the argument --with-package-versions. Is this currently possible? I've just successfully done

[R] installing package with version number using namespaces & dynamic library

2004-08-04 Thread Matthias Burger
all library("RIO") file Namesapce defines (amoung other directives): useDynLib(RIO) I also tryed useDynLib("RIO_1.4.0") to no avail. But RIO/libs contains the file RIO.so anyway. I checked in 'Writing R Extensions" section 'Package name spaces' but did not f

Re: [R] if syntax

2004-06-20 Thread Matthias Burger
] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Matthias Burger Bioinformatics R&D Epigenomics AG www.epigenomics.com Kleine Präsidentenstraße 1 fax: +49-30-24345-

class of seq(length=n) values (was Re: [R] Zero Index Origin?)

2004-04-13 Thread Matthias Burger
r that R couldn't replace it with a _far_ better and _far_ less idiosyncratic framework. I'd be interested in working on a Matlab equivalent DSP package for R (if that isn't being done by someone) and one of the things most criticized about Matlab from the standpoint of th

Re: [R] FW: S4 classes, creating in C

2003-06-23 Thread Matthias Burger
ECTED]) [1] "integer" "vector" "numeric" So providing an explicit cast in the prototype cures the problem. HTH, Matthias Laurence Kell CEFAS Lowestoft Laboratory Pakefield Road Lowestoft, NR33 0HT UK Tel +44 1502 52 42 57 Fax +44 1502 52 45 11 e-mail [EMAIL PROTECTED]