Re: [Rd] Use of C++ in Packages

2019-03-30 Thread Brodie Gaslam via R-devel
It's great to see the community mobilize to try to resolve this issue. Obviously C++ has become a big part of R extensions, so it would be nice to have clear guidelines and tools to be able to use C++ safely with the R API. Unfortunately doing this will probably require a fair bit of work. If

Re: [Rd] [External] re: default for 'signif.stars'

2019-03-30 Thread Lenth, Russell V
Abs, There are definitely problems with the editorial, but I think "most mega-ultra-super-biased" is an overreaction. It appears that you have overlooked some of the points made there, and the fact that it does not pretend to be an exhaustive list of alternative methods. The editorial attempts

Re: [Rd] Use of C++ in Packages

2019-03-30 Thread cstrato
Hi, It may or may not be of interest to you but an example how to access R functions from C++ can be found in the ROOT C++ framework, ROOT Version 6, see e.g.: https://root.cern/doc/master/classROOT_1_1R_1_1TRInterface.html with an example shown in: https://root.cern/doc/master/r_2example_8C.h

Re: [Rd] Use of C++ in Packages

2019-03-30 Thread Romain Francois
tl;dr: we need better C++ tools and documentation. We collectively know more now with the rise of tools like rchk and improved documentation such as Tomas’s post. That’s a start, but it appears that there still is a lot of knowledge that would deserve to be promoted to actual documentation of