[R] Problem sourcing file

Duncan Murdoch murdoch.duncan at gmail.com
Sun May 27 20:43:50 CEST 2012


On 12-05-27 2:10 PM, Reza Salimi-Khorshidi wrote:
> Hi all,
> I have the exact same problem in R 2.14.0, which does not seem to be due
> to using the quotation mark. When I say
> source("~/Documents/myFile.R")
> for the first time (after I start R), it works fine, but when I run it
> for a second time (even when I empty the workspace and rerun every
> thing, just like the first time), it returns the exact same error, i.e.,
>
> Error in srcfilecopy(filename, lines, file.info
> <http://file.info>(filename)[1, "mtime"]) :
>    unused argument(s) (file.info <http://file.info>(filename)[1, "mtime"])
>
> Can you please help?

You should upgrade to the current release, or at least to 2.14.2.

Duncan Murdoch



More information about the R-help mailing list