Re: [R-pkg-devel] .Fortran opinion

2019-05-26 Thread Avraham Adler
If you read further in Drew's posts (which I highly recommend) he says that C++/Rcpp isn't the best for wrapping Fortran calls, and that it is faster and cleaner to use C. I have a relatively detailed blog post on building packages with Fortran (or raw C) code; I hope you may find it useful in your

Re: [R-pkg-devel] .Fortran opinion

2019-05-26 Thread Neal Fultz
I think the current best practice is to wrap the Fortran code in a C helper, and invoke that using .Call - more information on that is available in Hadley's book - http://adv-r.had.co.nz/C-interface.html It shouldn't be too much work, maybe another 10-20 lines of code, most of which could probably

Re: [R-pkg-devel] Advice on setAs - issue of "in method for 'coerce' with signature / no definition for classes

2019-05-26 Thread Emmanuel Blondel (GMAIL)
Thank Thank you Martin for your help and for this solution, warnings disappeared with this, and i've re-submitted the package. Best, Emmanuel Le 26/05/2019 à 10:13, Martin Morgan a écrit : Since ncdf4 (and emld) both use S3 class systems, it is sufficient to simply declare setOldClass

Re: [R-pkg-devel] Advice on setAs - issue of "in method for 'coerce' with signature / no definition for classes

2019-05-26 Thread Martin Morgan
Since ncdf4 (and emld) both use S3 class systems, it is sufficient to simply declare setOldClass("ncdf4") some time prior to using setAs() . Martin On 5/24/19, 6:41 PM, "R-package-devel on behalf of Emmanuel Blondel (GMAIL)" wrote: Dear all, I write here as i'm in process to submit

[R-pkg-devel] Re : Advice on setAs - issue of "in method for 'coe

2019-05-26 Thread cartograf...@gmail.com
Hi, I can give you an advise: try to use (ISO) official code for the geometries and put it as characters. Sylvain  Envoyé depuis Yahoo Mail pour Android Le sam., mai 25, 2019 à 0:41, Emmanuel Blondel (GMAIL) a écrit : Dear all, I write here as i'm in process to submit a revision of /geom