Skip to content

Demo for linking native routines between R packages

3 messages · Jitao David Zhang, Joshua Ulrich, Gábor Csárdi

#
Dear Davis, Dirk, Jan, and r-devel subscribers,

I hope you have had a good start in the new year.

For your information: I have updated the GitHub repository to demonstrate
linking native routines between R packages (
https://github.com/Accio/demo-linking-native), especially by listing the
prior art and the project by Davis to give the readers more background and
history of the topic. And I took the liberty to acknowledge your
contribution, criticism and help to improve this baby project.

In any case, I wish there is a link from WRE to a small demo (not
necessarily mine!) where linking native routine is implemented in a
minimalistic example for teaching and demonstration purposes. That will
help people a lot in my opinion.

Best regards,
David
3 days later
#
Hi David,
On Wed, Jan 6, 2021 at 4:00 AM Jitao David Zhang <davidvonpku at gmail.com> wrote:
R-core will probably be reluctant to link to an external example they
have very little control over. For example, what if the process
changes and the external source doesn't get updated?

That said, WRE does list two packages that register native routines
from other packages:
https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Linking-to-native-routines-in-other-packages

I'd be open to including a vignette in xts that discusses the process
of linking to zoo. That would have the benefit of needing to be
updated if the process changes. We can discuss off-list if you're
interested in collaborating on it.

  
    
#
On Sat, Jan 9, 2021 at 4:45 PM Joshua Ulrich <josh.m.ulrich at gmail.com>
wrote:
[...]
There are a bunch more, see here:
https://github.com/search?q=org%3Acran+R_RegisterCCallable&type=code

Here is another very minimal example:
https://github.com/DavisVaughan/cexport#cexport

Gabor

[...]