Re: [Rd] Replace isnan and lgamma in Fortran subroutine in R package

2014-09-22 Thread Berend Hasselman
On 23-09-2014, at 00:33, Wang, Zhu wrote: > Hello, > > I submitted a package which used Fortran functions isnan and lgamma. However, > I was told that: > > isnan and lgamma are not Fortran 95 functions. > > I was asked to write 'cross-platform portable code' and so should not be > writing G

[Rd] Replace isnan and lgamma in Fortran subroutine in R package

2014-09-22 Thread Wang, Zhu
Hello, I submitted a package which used Fortran functions isnan and lgamma. However, I was told that: isnan and lgamma are not Fortran 95 functions. I was asked to write 'cross-platform portable code' and so should not be writing GNU extensions to Fortran. See http://cran.r-project.org/web/ch

[Rd] extra package tests directory

2014-09-22 Thread Paul Gilbert
I am trying to decide on a name for a directory where I will put some extra package tests. The main motivation for this is the need to limit the package test time on CRAN. That is, these are tests that could be in the tests/ directory and could be run on CRAN, but will take longer than CRAN lik

Re: [Rd] Pointer ownership with GECreateDevDesc/GEDestroyDevDesc

2014-09-22 Thread Ritch Melton
I perused the source for RStudio and noticed that they had a similar problem. I didn't think that the GEDevDesc structure was exported, but apparently this is a worthwhile workaround to the defect. void GD_Close(pDevDesc dev) { ...elided... // explicitly free and then null out the dev pointe