Herve Pages
2007-Apr-03 18:29 UTC
[Rd] source(..., echo=TRUE) broken in R-2.5.0 alpha and in R-2.6.0 devel
Hi, I get this error with R-2.5.0 alpha and R-2.6.0 devel: > source("http://bioconductor.org/biocLite.R", echo=TRUE) Error in if (timestamp != srcfile$timestamp) warning("Timestamp of '", : missing value where TRUE/FALSE needed Same with 'verbose=TRUE': > source("http://bioconductor.org/biocLite.R", verbose=TRUE) 'envir' chosen:<environment: R_GlobalEnv> encoding = "native.enc" chosen --> parsed 2 expressions; now eval(.)ing them: >>>> eval(expression_nr. 1 ) ================ Error in if (timestamp != srcfile$timestamp) warning("Timestamp of '", : missing value where TRUE/FALSE needed The above works fine with R-2.4.1. Cheers, H.
Martin Maechler
2007-Apr-04 09:21 UTC
[Rd] source(..., echo=TRUE) broken in R-2.5.0 alpha and in R-2.6.0 devel
>>>>> "Herve" == Herve Pages <hpages at fhcrc.org> >>>>> on Tue, 03 Apr 2007 11:29:25 -0700 writes:Herve> Hi, I get this error with R-2.5.0 alpha and R-2.6.0 Herve> devel: >> source("http://bioconductor.org/biocLite.R", echo=TRUE) Herve> Error in if (timestamp != srcfile$timestamp) Herve> warning("Timestamp of '", : missing value where TRUE/FALSE needed Indeed, there's a bug iff both 'echo' is TRUE and the ``file'' that is sourced is not a proper file (but e.g. a http:// connection). It looks like the current code in source() and some of its helper functions such as getSrcLines() have not yet been "robustified" to work correctly in such a case. We (R-core) will look at a patch ASAP. Herve> Same with 'verbose=TRUE': yes, since that automatically uses echo = TRUE [...............] Herve> The above works fine with R-2.4.1.