Re: [R] Problem sourcing file

2012-05-27 Thread Duncan Murdoch
On 12-05-27 3:25 PM, Jeff Newmiller wrote: 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 trigger

Re: [R] Problem sourcing file

2012-05-27 Thread Reza Salimi-Khorshidi
Seems Duncan's solutions worked. I installed R 2.15.0 and it seems to work fine ... Thanks fellas. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] Problem sourcing file

2012-05-27 Thread Reza Salimi-Khorshidi
It is simply a bunch of web-scraping routines that if copied in the R command line (for more than 100s of times) works fine, BUT if capsulated in myFiles.R and invoked by source command, can ONLY be called once. So, seems weird and I can't figure out a solutions, as it's the first time I encountere

Re: [R] Problem sourcing file

2012-05-27 Thread Jeff Newmiller
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 versio

Re: [R] Problem sourcing file

2012-05-27 Thread Duncan Murdoch
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

Re: [R] Problem sourcing file

2012-05-27 Thread Reza Salimi-Khorshidi
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, ju

Re: [R] Problem sourcing file

2012-05-25 Thread Jeff Newmiller
Ah, my default font makes that distinction too subtle. Action item for me, then, to change fonts. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go..

Re: [R] Problem sourcing file

2012-05-25 Thread Uwe Ligges
On 25.05.2012 20:17, Jeff Newmiller wrote: What isn't proper about single quotes? Those were *directed* quotes. Uwe Ligges --- Jeff NewmillerThe . . Go Live... DCN:

Re: [R] Problem sourcing file

2012-05-25 Thread Duncan Murdoch
On 25/05/2012 2:17 PM, Jeff Newmiller wrote: What isn't proper about single quotes? They look like directional quotes to me. Might just be the mailer... Duncan Murdoch --- Jeff NewmillerThe ..

Re: [R] Problem sourcing file

2012-05-25 Thread Jeff Newmiller
What isn't proper about single quotes? --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead:

Re: [R] Problem sourcing file

2012-05-25 Thread Duncan Murdoch
On 25/05/2012 10:08 AM, Marta Tolós wrote: Hi all, I created a file to define some functions. When I try to source this file, sometimes it works but sometimes I get the following error: >Source(‘File.R’) Those aren't proper quotes, and source() shouldn't be capitalized, and you didn't te

Re: [R] Problem sourcing file

2012-05-25 Thread Jeff Newmiller
--- Sent from my phone. Please excuse my brevity. arun wrote: >Hi, > >Try > >source("File.R") > >A.K. > >- Original Message - >From: Marta Tolós >To: r-help@r-project.org >Cc: >Sent: Friday, May 25, 2012 10:08

Re: [R] Problem sourcing file

2012-05-25 Thread arun
Hi, Try source("File.R") A.K. - Original Message - From: Marta Tolós To: r-help@r-project.org Cc: Sent: Friday, May 25, 2012 10:08 AM Subject: [R] Problem sourcing file Hi all, I created a file to define some functions. When I try to source this file, sometimes it

Re: [R] Problem sourcing file

2012-05-25 Thread jim holtman
Is the file just definitions of functions, or do you have some statements that are being executed? Could the error be coming from them? Just defining functions should work just fine. On Fri, May 25, 2012 at 10:08 AM, Marta Tolós wrote: > Hi all, > > > > I created a file to define some functio

[R] Problem sourcing file

2012-05-25 Thread Marta Tolós
Hi all, I created a file to define some functions. When I try to source this file, sometimes it works but sometimes I get the following error: >Source(‘File.R’) Error in srcfilecopy(filename, lines, file.info(filename)[1, "mtime"]) : unused argument(s) (file.info(filename)[1, "mtime