Re: [Rd] Unexpected behaviour when comparing (==) long quoted expressions

2019-07-16 Thread Daniel Chen
is used (https://github.com/wch/r-source/blob/e647f78cb85282263f88ea30c6337b77a30743d9/src/main/relop.c#L140-L155):     SET_STRING_ELT(tmp, 0, (iS) ? PRINTNAME(x) :    STRING_ELT(deparse1(x, 0, DEFAULTDEPARSE), 0)); - Dan On 7/16/19 1:35 AM, Martin Maechler wrote: Daniel Chen on Fri

[Rd] Unexpected behaviour when comparing (==) long quoted expressions

2019-07-15 Thread Daniel Chen
Hi everyone: I’m one of the interns at RStudio this summer working on a project that helps teachers grade student code. I found an unexpected behaviour with the |==| operator when comparing |quote|d expressions. Example 1: |u <- quote(tidyr::gather(key = key, value = value, new_sp_m014:newrel