[R] error on multiple "==" in bquote()

One Two twoo872 at gmail.com
Tue Dec 15 13:12:16 CET 2015


Hello,

I noticed that the function bquote throws an error if there are
multiple "==" in the first argument. E.g.
> txt.main <- bquote(1 == 2 == 3)
Error: unexpected '==' in "txt.main <- bquote(1 == 2 =="

Is this behaviour intended or is it a bug? Because I don't see a
reason for this behaviour and didn't find anything in the
documentation either.

I know that one can use grouping as a workaround like this:
> txt.main <- bquote({1 == 2} == 3)
I am rather interested in whether I should file a bug about this
behaviour or not.

I'm using RStudio in this environment:
> sessionInfo()
R version 3.2.3 (2015-12-10)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows 7 (build 7601) Service Pack 1

locale:
[1] LC_COLLATE=German_Germany.1252  LC_CTYPE=German_Germany.1252
LC_MONETARY=German_Germany.1252
[4] LC_NUMERIC=C                    LC_TIME=German_Germany.1252

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

loaded via a namespace (and not attached):
[1] tools_3.2.3

Best Regards,
Martin



More information about the R-help mailing list