Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installed Rcpp version not supported by R-devel #95

Closed
Ewan-Keith opened this issue Sep 17, 2017 · 4 comments
Closed

Installed Rcpp version not supported by R-devel #95

Ewan-Keith opened this issue Sep 17, 2017 · 4 comments

Comments

@Ewan-Keith
Copy link

@Ewan-Keith Ewan-Keith commented Sep 17, 2017

One of my appveyor builds has recently started failing on R-devel, having previously ran fine on similar builds, but still runs successfully on R-release. The problem seems to be that appveyor is trying to install a version of Rcpp that is not consistent with R-devel. Output logs are below.

This is also suggested as the problem by the fact that I had the exact same problem for my travis linux builds (passing on release, failing on devel) but this was fixed when I cleared the travis package cache and rebuilt it from scratch. I don't think that appveyor uses package caching, but could be wrong.

The appveyor.yml is here in case it's something in my setup that is prompting this.

// 00check.log
* using log directory 'C:/projects/rstansim/rstansim.Rcheck'
* using R Under development (unstable) (2017-09-16 r73293)
* using platform: i386-w64-mingw32 (32-bit)
* using session charset: ISO8859-1
* using options '--no-manual --as-cran'
* checking for file 'rstansim/DESCRIPTION' ... OK
* checking extension type ... Package
* this is package 'rstansim' version '0.1.1'
* package encoding: UTF-8
* checking package namespace information ... OK
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking if there is a namespace ... OK
* checking for executable files ... OK
* checking for hidden files and directories ... OK
* checking for portable file names ... OK
* checking whether package 'rstansim' can be installed ... ERROR
Installation failed.
See 'C:/projects/rstansim/rstansim.Rcheck/00install.out' for details.
* DONE
Status: 1 ERROR
// 00install.out 
* installing *source* package 'rstansim' ...
** R
** preparing package for lazy loading
Error : package 'Rcpp' was installed by an R version with different internals; it needs to be reinstalled for use with this R version
ERROR: lazy loading failed for package 'rstansim'
* removing 'C:/projects/rstansim/rstansim.Rcheck/rstansim'
@krlmlr
Copy link
Owner

@krlmlr krlmlr commented Sep 17, 2017

@eddelbuettel @kevinushey @jjallaire: Could you please comment on this?

@eddelbuettel
Copy link
Contributor

@eddelbuettel eddelbuettel commented Sep 17, 2017

See r-devel mailing list message by Luke Tierney. ALTREP is in the r-devel master branch now and requires all packages to be rebuilt against updated headers which is exactly what the error message says.

@krlmlr
Copy link
Owner

@krlmlr krlmlr commented Sep 17, 2017

Thanks, Dirk.

To me this looks like we just need to wait until CRAN rebuilds their Windows packages, this shouldn't take more than a few days. Alternatively, PKGTYPE=source in appveyor.yml forces installation from source (reference).

@Ewan-Keith
Copy link
Author

@Ewan-Keith Ewan-Keith commented Sep 19, 2017

Yup, specifying PKGTYPE=source on R-devel does the trick for now. Will keep an eye on when the windows packages are rebuilt and will close the issue once that's the case.

Thanks to both.

eliotmcintire added a commit to PredictiveEcology/reproducible that referenced this issue Jan 25, 2018
rtobar added a commit to ICRAR/ProFit that referenced this issue Apr 18, 2018
This seems to be because the windows binary packages need to be rebuilt with
this version of R, as some internals in R have changed. More details and
pointers in krlmlr/r-appveyor#95

Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>
dschlaep added a commit to DrylandEcology/rSFSW2 that referenced this issue May 2, 2018
Based on information discussed in krlmlr/r-appveyor#95, we need to re-build packages from source to avoid the error
> Error : package 'Rcpp' was installed by an R version with different internals; it needs to be reinstalled for use with this R version
robinvanemden added a commit to Nth-iteration-labs/contextual that referenced this issue May 8, 2018
hongyuanjia added a commit to hongyuanjia/eplusr that referenced this issue Apr 29, 2019
@krlmlr krlmlr closed this as completed Jul 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants