> That is not quite right. Rf_lazy_duplicate was never in the API. I wish you wouldn't be contrarian just for the sake of it, and I wish you'd at least be correct when you are. I never said Rf_lazy_duplicate was part of the API. I said it was placed on the list of non-API C functions, which is true. https://github.com/wch/r-source/commit/42b67e1c9bd29506d5e1de8c50389cb4ad39f74a#diff-85fcd7ad89c2b2a608f20c34b99001203b2bc8d2f41c5aedef8239a4e4e98590R697
> Using it in a package has been producing a NOTE in R CMD check for a while; > that NOTE has now been upgraded to a WARNING. 3 weeks is not a while. > It has been essentially a no-op since the change to reference counting > several years ago. So Rf_lazy_duplicate(x) is now essentially the same as x. Thanks. On Wed, Nov 5, 2025 at 10:37 PM <[email protected]> wrote: > > On Thu, 6 Nov 2025, Iris Simmons wrote: > > > Hi, > > > > > > I see Rf_lazy_duplicate was placed on the list of non-API C functions. > > That is not quite right. Rf_lazy_duplicate was never in the API. Using > it in a package has been producing a NOTE in R CMD check for a while; > that NOTE has now been upgraded to a WARNING. > > > Is there going to be a replacement, or some alternative? None is > > mentioned in Writing R Extensions. > > It has been essentially a no-op since the change to reference counting > several years ago. So Rf_lazy_duplicate(x) is now essentially the same > as x. > > Best, > > luke > > > > > > > Thanks, > > Iris > > > > ______________________________________________ > > [email protected] mailing list > > https://stat.ethz.ch/mailman/listinfo/r-package-devel > > > > -- > Luke Tierney > Ralph E. Wareham Professor of Mathematical Sciences > University of Iowa Phone: 319-335-3386 > Department of Statistics and Fax: 319-335-3017 > Actuarial Science > 241 Schaeffer Hall email: [email protected] > Iowa City, IA 52242 WWW: http://www.stat.uiowa.edu/ ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel
