[Rd] substitute

Duncan Murdoch murdoch@dunc@n @end|ng |rom gm@||@com
Mon Nov 15 18:27:53 CET 2021


This looks as though it is related to the recent patch in

   https://bugs.r-project.org/show_bug.cgi?id=18232

I think you should probably wait until that settles down before worrying 
about it.

Duncan Murdoch

On 15/11/2021 12:18 p.m., Adrian Dușa wrote:
> Dear R wizards,
> 
> I have recently been informed about some build errors of my package QCA,
> which I was able to trace down to the base function substitute(), with the
> following replication example:
> 
> foo <- function(x) return(substitute(x))
> 
> In the stable R version 4.0.5, I get the expected result:
>> foo(A + ~B + C~D)
> A + ~B + C ~ D
> 
> A different result (the culprit for the build error) occurs under Fedora
> with R devel:
> 
>> foo(A + ~B + C~D)
> A + (~B + C) ~ D
> 
> The Fedora machine is the rhub docker image from:
> https://hub.docker.com/r/rhub/fedora-gcc-devel
> 
> probably very similar to the one signalling the CRAN build error:
> https://cran.r-project.org/web/checks/check_results_QCA.html
> 
> The first (expected) command is from the stable R version installed on the
> same Fedora machine, and I get an identical result on Windows and MacOS.
> 
> For some reason, substitute() gives a different result on Debian using gcc,
> and on both Fedora systems. I would be grateful for any hint, I am not
> entirely certain what I should do about this.
> 
> Thank you very much in advance,
> Adrian
>



More information about the R-devel mailing list