help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I change the Makeconf file of R to not use hardcoded, wrong


From: zimoun
Subject: Re: How can I change the Makeconf file of R to not use hardcoded, wrong include paths when compiling a package with Rcpp
Date: Thu, 16 Jan 2020 21:40:34 +0100

On Tue, 14 Jan 2020 at 20:00, zimoun <address@hidden> wrote:

> But it is not working properly:
>
> --8<---------------cut here---------------start------------->8---
> > library(Rcpp)
> Error in readRDS(pfile) :
>   cannot read workspace version 3 written by R 3.6.2; need R 3.5.0 or newer
> --8<---------------cut here---------------end--------------->8---
>
> I do not know why... need more investigations. :-)

It is because the package 'r-rcpp@mine' has been built using
'r-minimal-3.6.2'. Examining the building log:

--8<---------------cut here---------------start------------->8---
g++ -std=gnu++11 -I"/gnu/store/...-r-minimal-3.6.2/lib/R/include"
-DNDEBUG -I../inst/include/  -I/usr/local/include  -fpic  -g -O2  -c
api.cpp -o api.o
g++ -std=gnu++11 -I"/gnu/store/...-r-minimal-3.6.2/lib/R/include"
-DNDEBUG -I../inst/include/  -I/usr/local/include  -fpic  -g -O2  -c
attributes.cpp -o attributes.o
--8<---------------cut here---------------end--------------->8---


> Well,
>  a) I do not know if it the good strategy; it is what I am thinking of;

The fix seems to implement kind of 'package-with-explicit' for R. I
have just tried now and I failed. Keep you in touch. :-)



All the best,
simon



reply via email to

[Prev in Thread] Current Thread [Next in Thread]