[R-pkg-devel] package submission errors gsl
Iñaki Ucar
|uc@r @end|ng |rom |edor@project@org
Sun Jun 16 17:41:17 CEST 2019
On Sun, 16 Jun 2019 at 17:25, halaleh kamari
<halaleh.kamari using univ-evry.fr> wrote:
>
> Hi,
> I'm trying to submit my first package to cran. I got an email saying that my package does not pass the incoming checks automatically.
> In fact I got 1 ERROR which is related to the RcppGSL package that I use in my package.
> The relevant problem is:
>
> Flavor: r-devel-windows-ix86+x86_64
> Check: whether package can be installed, Result: ERROR
> Installation failed.
>
> Flavor: r-devel-linux-x86_64-debian-gcc
> Check: whether package can be installed, Result: ERROR
> Installation failed.
>
> and for each platform I got the following error:
>
> g++-8: error: /usr/local/lib/libgsl.a: No such file or directory
>
> g++.exe: error: /usr/local/lib/libgsl.a: No such file or directory
>
> I add the script ./src/Makevars to precise the path of the gsl libraries and headers, it works without error on my MacBook.
> my Makevars file:
> CXX=clang++
Don't specify the compiler in the package's Makevars file.
> PKG_CPPFLAGS = -I/usr/local/include/gsl
> PKG_LIBS = $(GSL_LIBS) $(BLAS_LIBS) $(FLIBS) /usr/local/lib/libgsl.a
>
> I think I have to make a configure script looking for gsl. After the web searching I haven't find any article that explains how to do that. I am hoping you can help.
RcppGSL's intro vignette documents how to link to it. Also there are
others packages on CRAN linking to it (RcppZiggurat, for example), so
you can inspect what they do.
Iñaki
More information about the R-package-devel
mailing list