Re: [R-pkg-devel] Compiled code should not call non-API entry points in R

2022-11-04 Thread Florian Rupprecht
When a public C interface is missing you could always load and call the R interface. Definitely slower, but the API will be more stable than when vendoring (and CRAN will be happier). Best, Florian On Fri, Nov 4, 2022, 02:10 Andrew Simmons wrote: > Hi everyone, > > > I had some R code for de

Re: [R-pkg-devel] Compiled code should not call non-API entry points in R

2022-11-03 Thread Dirk Eddelbuettel
On 3 November 2022 at 21:09, Andrew Simmons wrote: | I had some R code for dealing with connections, and I was using | summary.connection(). I rewrote it in C, so I was doing something more | like: | | #include | | Rconnection Rcon = R_GetConnection(file); | Rcon->description or Rcon->class |

[R-pkg-devel] Compiled code should not call non-API entry points in R

2022-11-03 Thread Andrew Simmons
Hi everyone, I had some R code for dealing with connections, and I was using summary.connection(). I rewrote it in C, so I was doing something more like: #include Rconnection Rcon = R_GetConnection(file); Rcon->description or Rcon->class but now, when checking my package, I get the following