Re: [Rd] Portability and Memory Issues for R-package

From: <KNygren_at_us.imshealth.com>
Date: Tue 27 Dec 2005 - 20:44:27 GMT


My guess is that the key step for a user to be able to use my package still would be to install the gsl library first so it can be accessed during the build. I am not sure if Robin has a set of instructions for platform specific installation of his package (which would likely include the pre-installation of the gsl library). I may follow up with him in regards to this and to see if it makes sense to link to his library. I will also look into the possibility of adding a configure script (as per Jan's suggestion). I know that the use of the gsl library is not ideal, and may eventually try to replace the gsl dependent code, perhaps by making use of the R matrix package (though I don't know if it has all the features I am currently using).

Kjell Nygren  

> I. Portability-
>
> Since I make extensive use of the gsl library in my C code, I have the gsl library installed (within the MinGw directory so it is included in the path) on my local machine. Within the package, I am then including a Makevars file with the following code in order to link to the gsl library:
>
> PKG_LIBS=-lgsl -lgslcblas
>
> I also know that there is an R package (gsl) making use of some gsl functions which contains a Makevars.win file with the following code:

This package requires manual handling to build for Windows, and probably for some other platforms if they don't come with gsl by default.

My recommendation would be to work with its author (Robin Hankin, see the DESCRIPTION file for contact information) to add whatever functions are not already there, and then just make your package depend on the R package, rather than on the GSL library directly.

This will mean that all the manual work that has been done to get gsl to build will not need to be repeated by anyone who wants to install your package.

Duncan Murdoch



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed Dec 28 07:49:08 2005

This archive was generated by hypermail 2.1.8 : Mon 20 Feb 2006 - 03:21:35 GMT