Re: [Rd] Warning when sourcing file after require

2012-07-19 Thread Prof Brian Ripley
On 19/07/2012 12:46, Duncan Murdoch wrote: I don't see this in R-patched; I don't have 2.15.1 installed on this machine. But the problem appears to be that XML exports a function called source() (a generic), and you're using it -- but not the current version, which doesn't give the warning. Wh

Re: [Rd] Warning when sourcing file after require

2012-07-19 Thread Duncan Murdoch
I don't see this in R-patched; I don't have 2.15.1 installed on this machine. But the problem appears to be that XML exports a function called source() (a generic), and you're using it -- but not the current version, which doesn't give the warning. Duncan Murdoch On 12-07-18 1:36 PM, David H

[Rd] Warning when sourcing file after require

2012-07-19 Thread David Hastie
Hi I have recently upgraded to R 2.15.1. Since the upgrade, I am getting some odd behaviour that I don't understand. If I source a file which has a function with a require (or library) statement in it, then the first time I source it behaves as expected. If I then call the function (so that the re