Displaying 5 results from an estimated 5 matches for "end_of_input".
2009 Nov 25
1
Question R's parser : - parsing "x=\n 1"
Hello
I was reading the source main/src/gram.y and had one question, how does R parse
x =
1
According the grammar:
prog : END_OF_INPUT { return 0; }
| '\n' { return xxvalue(NULL,2,NULL); }
| expr_or_assign '\n' { return xxvalue($1,3,&@1); }
| expr_or_assign ';' { return xxvalue($1,4,&@1); }
| error { YYABORT; }
;
So this should be of the 3rd form.
Also, the expr_or_assign is of t...
2007 Oct 01
1
tricky problem with "if" function -
...emp"))
print(number.runs) #in the real script, lots happens in here
if(number.runs>1) cat("}",file="temp")
eval(parse(file="temp"))
But R returns the following error:
Error in parse(file, n, text, prompt, srcfile, encoding) :
temp: syntax error, unexpected END_OF_INPUT, expecting '\n' or ';' or '}' at
2: for(run.number in 1:number.runs){
--
Matthew C Keller
Postdoctoral Fellow
Virginia Institute for Psychiatric and Behavioral Genetics
2008 Jan 11
0
nlme model specification (revisit)
...)
>
> mod <- nlme(circumference ~ SSlogis(age, Asymp, xmid, scal),
+ data=Orange,
+ fixed = list(Asymp ~ 1, xmid ~ 1, scal ~ 1),
+ start = fixef(mod.lis) )
Error in parse(file, n, text, prompt, srcfile, encoding) :
syntax error, unexpected END_OF_INPUT in "~ "
> sessionInfo()
R version 2.5.1 (2007-06-27)
i386-pc-mingw32
locale:
LC_COLLATE=English_United States.1252;LC_CTYPE=English_United States.1252;LC_MONETARY=English_United States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252
attached base packages:
[1] "stats"...
2010 Oct 17
0
make error for R 2.13.0
...ry/2.13/R-devel/library/cluster/R/cluster'
** help
Warning in readLines(file, warn = FALSE) :
invalid input found on input connection
'/tmp/Rtmpgxd64f/R.INSTALL33128ce7/cluster/man/plantTraits.Rd'
Warning: /tmp/Rtmpgxd64f/R.INSTALL33128ce7/cluster/man/plantTraits.Rd:69:
unexpected END_OF_INPUT 'Structuration de communaut
'
*** installing help indices
** building package indices ...
** testing if installed package can be loaded
Warning: S3 methods ‘clusplot.default’, ‘clusplot.partition’,
‘pltree.twins’, ‘silhouette.default’, ‘silhouette.clara’,
‘silhouette.partition’, ‘plot....
2014 May 22
1
citEntry handling of encoded URLs
...putational Biology_, *9*. <URL:
http://dx.doi.org/10.1371/journal.pcbi.1003118>, <URL:
http://www.ploscompbiol.org/article/info%3Adoi%2F10.1371%2Fjournal.pcbi.1003118}.>
Warning message:
In parse_Rd(Rd, encoding = encoding, fragment = fragment, ...) :
<connection>:5: unexpected END_OF_INPUT '
'
A work-around is, apparently, to quote the %, \\%3A etc., but is this the
intention?
Also, citEntry points to bibentry points to *Entry Fields*, but the 'url' tag is
not mentioned there, even though url appears in the examples; if the list of
supported tags is not easy to e...