[R] Error with Source()

jim holtman jholtman at gmail.com
Thu Nov 10 19:02:38 CET 2011


You have a syntax error in your script.  Take a look around line 884

On Thu, Nov 10, 2011 at 9:27 AM, ftonini <f_tonini at hotmail.com> wrote:
> Hi everybody,
>
> I started to receive a weird message in R that I have never seen
> before...also I haven't found anything on google or on this forum about it.
> Whenever I use the command source(...) to point to one of my scripts, I get
> the following message:
>
> Error in source("myfunctions.R") : myfunctions.R:884:9: unexpected symbol
> 883:
> 884:         cond
>             ^
>
> I am using the same commands as I did in the past and it was working...I
> started to receive this error (not sure if it has to do with it or not)
> after trying to create a batch file to run one of my .R scripts with
> double-click. That batch file worked...but as soon as I use the source()
> command it does not work any more.
>
> Any help is appreciated!
>
> Thanks
> Francesco
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Error-with-Source-tp4023794p4023794.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at 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.
>



-- 
Jim Holtman
Data Munger Guru

What is the problem that you are trying to solve?
Tell me what you want to do, not how you want to do it.



More information about the R-help mailing list