Re: [Rd] switch to reference counting in R-devel
R-devel has been switched to use reference counting by default with r77508. Building with -DSWITCH_TO_NAMED goes back to the NAMED mechanism. Best, luke On Sun, 24 Nov 2019, luke-tier...@uiowa.edu wrote: > Baring any unforeseen issues R-devel will switch in about a week from > the NAMED mechanism to reference counting for determining when objects > can be safely mutated in base C code. This is expected to have minimal > impact on packages not using unsupported coding practices in their C > code. > > > The transition to reference counting has been in progress for a > number of years. Some older notes on this are available at > http://developer.r-project.org/Refcnt.html. These may no longer be > completely accurate but should give you an idea of what is going on. > > If you want to test your package under reference counting you can do > so by building R with -DSWITCH_TO_REFCNT added to CFLAGS or DEFS in a > config.site file. > > A small number of packages are still using the NAMED or SET_NAMED > functions even though this has been discouraged for some time. > For now these will not produce errors but also not do anything useful. > They will probably be removed before R 4.0.0 is released, so you > should look at why you are using them and adjust accordingly. > > Best, > > luke > > > -- Luke Tierney Ralph E. Wareham Professor of Mathematical Sciences University of Iowa Phone: 319-335-3386 Department of Statistics andFax: 319-335-3017 Actuarial Science 241 Schaeffer Hall email: luke-tier...@uiowa.edu Iowa City, IA 52242 WWW: http://www.stat.uiowa.edu __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] switch to reference counting in R-devel
This is very exciting news. Luke, thank you for all your work on this - I know it's been a long journey. All the best, Henrik On Tue, Dec 3, 2019 at 8:04 AM Tierney, Luke wrote: > > R-devel has been switched to use reference counting by default with > r77508. Building with -DSWITCH_TO_NAMED goes back to the NAMED > mechanism. > > Best, > > luke > > On Sun, 24 Nov 2019, luke-tier...@uiowa.edu wrote: > > > Baring any unforeseen issues R-devel will switch in about a week from > > the NAMED mechanism to reference counting for determining when objects > > can be safely mutated in base C code. This is expected to have minimal > > impact on packages not using unsupported coding practices in their C > > code. > > > > > > The transition to reference counting has been in progress for a > > number of years. Some older notes on this are available at > > http://developer.r-project.org/Refcnt.html. These may no longer be > > completely accurate but should give you an idea of what is going on. > > > > If you want to test your package under reference counting you can do > > so by building R with -DSWITCH_TO_REFCNT added to CFLAGS or DEFS in a > > config.site file. > > > > A small number of packages are still using the NAMED or SET_NAMED > > functions even though this has been discouraged for some time. > > For now these will not produce errors but also not do anything useful. > > They will probably be removed before R 4.0.0 is released, so you > > should look at why you are using them and adjust accordingly. > > > > Best, > > > > luke > > > > > > > > -- > Luke Tierney > Ralph E. Wareham Professor of Mathematical Sciences > University of Iowa Phone: 319-335-3386 > Department of Statistics andFax: 319-335-3017 > Actuarial Science > 241 Schaeffer Hall email: luke-tier...@uiowa.edu > Iowa City, IA 52242 WWW: http://www.stat.uiowa.edu > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] switch to reference counting in R-devel
Agreed. Now is as good a time as any to send many, many thanks are due to Luke, Martin, Uwe, Duncan, the redoubtable Professor B. and the entire R-Core team for their seemingly countless hours of toil keeping R not only afloat but healthy and vibrant. Your work is deeply appreciated, even if it isn’t expressed often enough. Thank you again! Avi On Tue, Dec 3, 2019 at 1:11 PM Henrik Bengtsson wrote: > This is very exciting news. Luke, thank you for all your work on this > - I know it's been a long journey. > > All the best, > > Henrik > > On Tue, Dec 3, 2019 at 8:04 AM Tierney, Luke > wrote: > > > > R-devel has been switched to use reference counting by default with > > r77508. Building with -DSWITCH_TO_NAMED goes back to the NAMED > > mechanism. > > > > Best, > > > > luke > > > > On Sun, 24 Nov 2019, luke-tier...@uiowa.edu wrote: > > > > > Baring any unforeseen issues R-devel will switch in about a week from > > > the NAMED mechanism to reference counting for determining when objects > > > can be safely mutated in base C code. This is expected to have minimal > > > impact on packages not using unsupported coding practices in their C > > > code. > > > > > > > > > The transition to reference counting has been in progress for a > > > number of years. Some older notes on this are available at > > > http://developer.r-project.org/Refcnt.html. These may no longer be > > > completely accurate but should give you an idea of what is going on. > > > > > > If you want to test your package under reference counting you can do > > > so by building R with -DSWITCH_TO_REFCNT added to CFLAGS or DEFS in a > > > config.site file. > > > > > > A small number of packages are still using the NAMED or SET_NAMED > > > functions even though this has been discouraged for some time. > > > For now these will not produce errors but also not do anything useful. > > > They will probably be removed before R 4.0.0 is released, so you > > > should look at why you are using them and adjust accordingly. > > > > > > Best, > > > > > > luke > > > > > > > > > > > > > -- > > Luke Tierney > > Ralph E. Wareham Professor of Mathematical Sciences > > University of Iowa Phone: 319-335-3386 > > Department of Statistics andFax: 319-335-3017 > > Actuarial Science > > 241 Schaeffer Hall email: luke-tier...@uiowa.edu > > Iowa City, IA 52242 WWW: http://www.stat.uiowa.edu > > > > __ > > R-devel@r-project.org mailing list > > https://stat.ethz.ch/mailman/listinfo/r-devel > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > -- Sent from Gmail Mobile [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] Dynamic load library problem using R 4.0.0
I'm having problems getting code that runs under 3.6.1 on MacOSX (and Ubuntu) to run the R version 4.0.0 on Windows. I have not tested R 4.0.0 on mac (yet). Key question: Has anything changed in R 4.0.0/Windows regarding how dynamically loaded libraries are accessed? Can someone please point me in the right direction? WORKS On MacOSX Under: R version 3.6.1 (2019-07-05) -- "Action of the Toes" after dynamically loading ../../bin/qFVSie.so: > getLoadedDLLs()$qFVSie DLL name: qFVSie Filename: /Users/ncrookston/open-fvs/branches/NickDev/tests/APIviaR/../../bin/qFVSie.so Dynamic lookup: TRUE # expected output is correct: > i=1 > .C("CfvsSpeciesCode",fvs_code="",fia_code="",plant_code="", indx=as.integer(i)) $fvs_code [1] "WP" $fia_code [1] "119" $plant_code [1] "PIMO3" $indx [1] 1 - from the nm command: $ nm ../../bin/qFVSie.so | grep -i cfvsspeciescode 000a7980 T _CfvsSpeciesCode Fails On Win10 Under: R version 4.0.0 Under development (Rtools 4.0) (2019-11-23 r77455) -- "Blame Jeroen" NOTE: The .dll is built using the most recent Rtools as advised by Jeroen. > getLoadedDLLs()$qFVSie DLL name: qFVSie Filename: C:/Users/nickc/open-fvs/branches/NickDev/tests/APIviaR/../../bin/qFVSie.dll Dynamic lookup: TRUE > i=1 > .C("CfvsSpeciesCode",fvs_code="",fia_code="",plant_code="", indx=as.integer(i)) Error in .C("CfvsSpeciesCode", fvs_code = "", fia_code = "", plant_code = "", : C symbol name "CfvsSpeciesCode" not in load table - from the nm command on Win10: nm ../../bin/qFVSie.dll | grep -i cfvsspeciescode 707a21f0 T CfvsSpeciesCode --- If advised to do so, I'll create a simple and fully reproducible example, but perhaps I missing something simple (like compiler switch needed to create my .dll that has not been necessary until now). Thanks, Nick -- Nicholas L. Crookston Forestry Research Consultant Moscow Idaho USA [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel