-
-
Notifications
You must be signed in to change notification settings - Fork 209
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
Install Rcpp 0.12.12 from Source R 3.5.1 #915
Comments
This is not functionality we document, recommend, use, or think highly of ourselves. Just grab it with |
Also, maybe your error is in thinking you can randomly mix R versions and Rcpp versions. Maybe you can. Or maybe you cannot---in any event that is not how CRAN works. |
Thanks @eddelbuettel - the use case is in the form of a packrat restore for an old project rather than devtools specific. That’s just a way to reproduce the error. On your second point you could be right. 3.5.1 was used for convenience. I’ll test with the version it was developed in as recorded in packrat lock. Hopefully that will resolve the error. Regards Adam |
I don't use I am surprised that it doesn't build. But as I explained, we work bloody hard (with literally thousand of tests of the package and also reverse depends tests) to make sure current versions build. Maybe R changed. In which case you packrat may be invalidated -- don't you want a similarly outdated R versions? Carl does a lot of work in our Rocker Project to provide versioned R stacks. You should be able to work this out. But I remain adamant that it is not a bug in Rcpp as provided by this repo. |
Yep understood - my initial thinking (having no experience with c++) was that an underlying c++ library had changed which was meaning It couldn’t build. Re the need for packrat our usecase is that we require research projects to be reproducible over time in an organisation that hasnt yet adopted something like docker. Multiple r versions on windows is all we have. Thanks for your help, Adam |
Gotcha. Besides packrat, you can also just adjust |
I thought that R removed Rf_pythag() and so newer releases of Rcpp no
longer attempt to use it?
If you tried to build older versions of Rcpp with newer R I'd expect to see
this error.
…On Sun, Oct 14, 2018, 10:18 AM Adam Robinson ***@***.***> wrote:
Yep understood - my initial thinking (having no experience with c++) was
that an underlying c++ library had changed which was meaning It couldn’t
build.
Re the need for packrat our usecase is that we require research projects
to be reproducible over time in an organisation that hasnt yet adopted
something like docker. Multiple r versions on windows is all we have.
Thanks for your help,
Adam
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#915 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AB4pBiLj-z6cxzJ8oMoaXkBnpwtb-Hj6ks5uk3HJgaJpZM4XbMyF>
.
|
And I admit I am woozy on the details but wasn't that even for r-devel? Well, maybe r-devel at the time which is (by now) of course r-release. But as @kevinushey says, you'd need something like the backports package (forget its exact name) also filling in for header changes. Not sure I call that a worthwhile endeavour. In short, your restoration project worked exactly as planned but you may have jumped to the wrong conclusion. (Which happens to me multiple times a day too, so don't feel singled out...) |
Successful build on 3.4.2 so all sorted. Thanks @kevinushey for the info on this been removed from R 3.5.1 - all makes sense now. Thanks @eddelbuettel for the info too - illustrates the importance of environment management! |
I am trying to install Rcpp 0.12.12 from source using the devtools::install_version on R 3.5.1 on Windows as follows:
This is resulting in the following error:
I understand from #826 that Rf_pythag has since been commented out and having tested with the latest version from cran with install.packages('Rcpp', type = 'source') I no longer have this problem.
Is this a known problem and should I be able to install from source for the specified version?
Session info as follows:
Thanks for your help!
The text was updated successfully, but these errors were encountered: