On Tue, 14 Jan 2020 at 20:00, zimoun <[email protected]> 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