This and some related problems should be fixed in tomorrow's R-patched
snapshot.
On Mon, 16 May 2005, Luca Scrucca wrote:
Dear R-users,
I used to give commands such as:
source(file="~/path/to/file.R", chdir=TRUE)
but with the latest v. 2.1.0 it does not seem to work anymore.
I tried to figure out
There was a pre-existing bug. ?source in 2.0.1 says
file: a connection or a character string giving the name of the
file or URL to read from.
yet it contained
if (chdir && (path <- dirname(file)) != ".") {
You cannot reasonably run dirname() on a connection or a URL, and it
thro
Dear R-users,
I used to give commands such as:
> source(file="~/path/to/file.R", chdir=TRUE)
but with the latest v. 2.1.0 it does not seem to work anymore.
I tried to figure out what it was going on and it seems that the string
for which
> class(file)
[1] "character"
is changed to
> class(file)