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 have

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] How to find detritis rejected by "R CMD check" on Debian?

2020-04-17 Thread Ivan Krylov
This should probably have been addressed to R-pkg-devel, not Rd. On Fri, 17 Apr 2020 09:14:44 -0500 Spencer Graves wrote: > Found the following files/directories: >   ‘fdaMatlabPath.m’ This is not the "detritus in the temp directory"; the message is related to the previous line in the log: >>

Re: [Rd] How to find detritis rejected by "R CMD check" on Debian?

2020-04-17 Thread Duncan Murdoch
On 17/04/2020 10:14 a.m., Spencer Graves wrote: Hello:   How can someone help me find and fix the following, contained in 00check.log on Debian for "https://github.com/JamesRamsay5/fda": NOTE Found the following files/directories:   ‘fdaMatlabPath.m’ * checking for detritus in the tem

Re: [Rd] How to find detritis rejected by "R CMD check" on Debian?

2020-04-17 Thread Dirk Eddelbuettel
Spencer, On 17 April 2020 at 09:14, Spencer Graves wrote: |   How can someone help me find and fix the following, contained in | 00check.log on Debian for "https://github.com/JamesRamsay5/fda": | | NOTE | Found the following files/directories: |   ‘fdaMatlabPath.m’ | * checking for detri

[Rd] How to find detritis rejected by "R CMD check" on Debian?

2020-04-17 Thread Spencer Graves
Hello:   How can someone help me find and fix the following, contained in 00check.log on Debian for "https://github.com/JamesRamsay5/fda": NOTE Found the following files/directories:   ‘fdaMatlabPath.m’ * checking for detritus in the temp directory ... OK   See: https://win-build

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

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 (f

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 s

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 purpose

[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

Re: [Rd] suggestion: "." in [lsv]apply()

2020-04-17 Thread Sokol Serguei
Thanks Simon, Now, I see better your argument. Le 16/04/2020 à 22:48, Simon Urbanek a écrit : ... I'm not arguing against the principle, I'm arguing about your particular proposal as it is inconsistent and not general. This sounds promising for me. May be in a (new?) future, R core will come w