[Rd] Platform dependent native routine registration

Gábor Csárdi csardi.gabor at gmail.com
Tue Mar 7 15:57:16 CET 2017

On Tue, Mar 7, 2017 at 2:51 PM, Dirk Eddelbuettel <edd at debian.org> wrote:
> | But I just found that using string literals in .Call() works just
> | fine. Hopefully
> | this will still be allowed in the long run:
> |
> | .Call("c_non_existent_function_on_this_platform", ...)
> So you are adjusting the literals on the fly at compilation time?

No, I just leave them there. They are not supposed to be called on a platform
where the C function does not exist, and even if they would be, that's just an
error, which is fine.

I could dynamically include/exclude R code at install time, but that is not so
easy, either, I would probably need to deal with the docs as well, etc.

So I'll just leave it there....


> Dirk
> --
> http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org

More information about the R-devel mailing list