Skip to content
Back to formatted view

Raw Message

Message-ID: <c05fcfd3-bec7-4d5a-ad5c-06e470b5501a@gmail.com>
Date: 2024-02-20T13:03:58Z
From: Duncan Murdoch
Subject: Bug in comparison of language objects?

I noticed the following odd behaviour today:

   exprs <- expression( mean(a), mean(b), { a }, { b } )

   exprs[[1]] == exprs[[2]]
   #> [1] FALSE

   exprs[[3]] == exprs[[4]]
   #> [1] TRUE

Does it make sense to anyone that the argument passed to `mean` matters, 
but the expression contained in braces doesn't?

Duncan Murdoch