From murdoch at stats.uwo.ca  Wed Apr  4 15:07:33 2007
From: murdoch at stats.uwo.ca (Duncan Murdoch)
Date: Wed, 04 Apr 2007 09:07:33 -0400
Subject: [Rd] source(...,
 echo=TRUE) broken in R-2.5.0 alpha and in R-2.6.0 devel
In-Reply-To: <17939.28182.453575.600227@stat.math.ethz.ch>
References: <46129D05.5080200@fhcrc.org>
	<17939.28182.453575.600227@stat.math.ethz.ch>
Message-ID: <4613A315.9060608@stats.uwo.ca>

On 4/4/2007 5:21 AM, Martin Maechler wrote:
>>>>>> "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.

Thanks for reporting this.

This is now fixed and committed to svn.  It will take a day or two for 
the change to make it onto CRAN.

Duncan Murdoch



[Rd] source(..., echo=TRUE) broken in R-2.5.0 alpha and in R-2.6.0 devel
Duncan Murdoch