[R] Help
peter dalgaard
pdalgd at gmail.com
Tue Sep 8 08:56:36 CEST 2015
Please avoid Nabble.... For starters, your mail has lost the original poster and all context.
Anyways,
(A) in this particular case it wouldn't be the sum(x issue since it would stop with a syntax error:
> sum(x
+ 1
Error: unexpected numeric constant in:
"sum(x
1"
>
More commonly, miscounting quote characters (' or ") is the culprit, or maybe a curly brace {. The latter would stop at any syntax error, though:
> {
+ 1
+ q()
+ a b
Error: unexpected symbol in:
"q()
a b"
With quotes it will go on until a matching quote is found, since character constants can be multi-line.
(B) More importantly, ESC is not invariably the ticket out. It is the case in the Mac GUI and in RStudio, and presumably in RGui on Windows too, but in a Terminal application on OSX or Linux, it is Ctrl-C.
-pd
On 07 Sep 2015, at 17:40 , Dan D <ddalthorp at usgs.gov> wrote:
> press ESC.
>
> You may have entered a command that was missing a parenthesis or something
> else that R needs before it can make sense out of your code (e.g., entering
> "sum(X" without the closing paren will give you that pattern). ESC brings
> back the command line and you can try again.
>
> -Dan
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Help-tp4711952p4711960.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.
--
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Office: A 4.23
Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com
More information about the R-help
mailing list