Re: [Rd] Demo for linking native routines between R packages

2021-01-09 Thread Gábor Csárdi
On Sat, Jan 9, 2021 at 4:45 PM Joshua Ulrich wrote: [...] > > 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 > > There are a bunch more, see

Re: [Rd] Demo for linking native routines between R packages

2021-01-09 Thread Joshua Ulrich
Hi David, On Wed, Jan 6, 2021 at 4:00 AM Jitao David Zhang wrote: > > 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 (

Re: [Rd] Demo for linking native routines between R packages

2021-01-06 Thread Jitao David Zhang
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

Re: [Rd] Demo for linking native routines between R packages

2020-04-17 Thread Jan Gorecki
Dirk, Thank you for a comprehensive set of resources on that. Yet, I think the proposal here make sense. Packages you mentioned are real-life package. It would be way easier to learn from a package that is meant to only show this single thing. For the same reason I think it also make sense to

Re: [Rd] Demo for linking native routines between R packages

2020-04-17 Thread Zhang, Jitao David via R-devel
Dear Davis and Dirk, Thank you very much for the suggestions, which are very valuable and helpful. I will add references to prior examples, document my project with the clear step-by-step-style document of Davis's project, and come back again to the mailing list. Best wishes, David On Fri, Apr

Re: [Rd] Demo for linking native routines between R packages

2020-04-17 Thread Davis Vaughan
I tried to do this a little. I mentioned xts along with: bdsmatrix https://github.com/cran/bdsmatrix cleancall https://github.com/r-lib/cleancall/ On Fri, Apr 17, 2020 at 9:40 AM Dirk Eddelbuettel wrote: > > Jitao, > > Thanks for writing this up. > > You could add a section on 'prior art' and

Re: [Rd] Demo for linking native routines between R packages

2020-04-17 Thread Dirk Eddelbuettel
Jitao, Thanks for writing this up. You could add a section on 'prior art' and references. The canonical example always was (c.f. Writing R Extensions) lme4 <-> Matrix which was followed early by the CRAN packages zoo <-> xts upon which I built xts <-> RcppXts with a write-up

Re: [Rd] Demo for linking native routines between R packages

2020-04-17 Thread Zhang, Jitao David via R-devel
Dear Davis, Thank you a lot for sharing this, and I am happy that I was not the only one who need to do it once to learn:) I proposed to add my repo to the manual. I think it makes sense to add both of ours, if possible, or we could merge them together and add that to the manual. Long-term URL

Re: [Rd] Demo for linking native routines between R packages

2020-04-17 Thread Davis Vaughan
Nice David! I also wrote up something similar a little while back https://github.com/DavisVaughan/cexport -Davis On Fri, Apr 17, 2020 at 7:09 AM Zhang, Jitao David via R-devel < r-devel@r-project.org> wrote: > Dear R developers, > > I want to advertise a small project for the educational

[Rd] Demo for linking native routines between R packages

2020-04-17 Thread Zhang, Jitao David via R-devel
Dear R developers, I want to advertise a small project for the educational purpose to show people how to link native routines. In R programming, we need to link to native routines in C, C++, or Fortran from the R environment. In most cases, the linking works within one package, namely the R code