The source function is quite convenient for invoking a set of R commands that have already been debugged. It is pretty worthless for troubleshooting. You need to step through those commands one at a time, then do it again, to see which command triggers this error.
My response to the last version of this query stands... what is in "~/Documents/myFile.R"? --------------------------------------------------------------------------- Jeff Newmiller The ..... ..... Go Live... DCN:<jdnew...@dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k --------------------------------------------------------------------------- Sent from my phone. Please excuse my brevity. Reza Salimi-Khorshidi <r...@fmrib.ox.ac.uk> 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(filename)[1, "mtime"]) >: > unused argument(s) (file.info(filename)[1, "mtime"]) > >Can you please help? >Cheers ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.