Message-ID: <378508462.159167.1560765836625.JavaMail.zimbra@univ-evry.fr>
Date: 2019-06-17T10:03:56Z
From: halaleh kamari
Subject: [R-pkg-devel] package submission errors gsl
In-Reply-To: <CALEXWq1rHo-savH7Sa7MRn=MTsRUG1=3Q5i0jb3RGGWAk+J-cg@mail.gmail.com>
Thanks a lot.
----- Mail original -----
De: "I?aki Ucar" <iucar at fedoraproject.org>
?: "halaleh kamari" <halaleh.kamari at univ-evry.fr>
Cc: "r-package-devel" <r-package-devel at r-project.org>
Envoy?: Dimanche 16 Juin 2019 17:41:17
Objet: Re: [R-pkg-devel] package submission errors gsl
On Sun, 16 Jun 2019 at 17:25, halaleh kamari
<halaleh.kamari at 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