-
Notifications
You must be signed in to change notification settings - Fork 60
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
identically emulate CRAN builds? #80
Comments
Please be aware that the C++ interface of dplyr is unstable at best. What's the purpose of including dplyr headers? dplyr isn't tested with C++11. I'm not sure why the compiler complains about "C99" for a C++ source file, too. To your original question: You probably need to set |
The package is building cleanly using all three of the GCC_PATH options ( https://ci.appveyor.com/project/jayhesselberth/valr/build/1.0.56 Only CRAN generates the warnings. I gather you expect r-appveyor and CRAN to be identical, then? Re: using dplyr C++ bindings. Perhaps an early design mistake, but so far haven't had too many issues. |
This is very strange indeed. If you look at the artifacts of your build, specifically at 00install.log, the flag I'd be glad to work with you (as the currently only user ;-) ) on the definition of a clean API, which should perhaps be moved to tibble. What else would belong there? (Putting |
I was able to get the desired CRAN behaviour by augmenting my local compilation with the CRAN default g++ parameters. Adding this line to my
Thanks to a random comment by Joe Cheng on a blog post. Perhaps you should add a note somewhere on the r-appveyor README that suggests adding these parameters to faithfully emulate CRAN win-builder; it might save users some pain down the line. That same note should also indicate that those flags generate I have further tracked my particular error down to changes in the RCPP_RETURN_VECTOR macros in Rcpp that were incorporated into the latest version (v0.12.7). I get these warnings using Rcpp v0.12.7, but I note that compilation of my package against Rcpp v0.12.6 (the previous version) eliminates the warnings. Variadic macros seem like dark magic to me. Perhaps you have a suggested fix on the dplyr side? I think the warning boils down to a macro argument that Re: a stable dplyr C++ API. This would be amazing, but don't have a lot of time to contribute. I would follow a discussion in the dplyr issues if you were to start one. |
r-appveyor could easily create .R/Makevars with
@jimhester: Should r-travis also do this, or is this perhaps implemented already? |
Just added with travis-ci/travis-build#885, I would suggest doing something similar with a site Makevars on appveyor rather than using the user |
Is there a way to use r-appveyor to identically emulate builds on CRAN during package submission?
I have a package that uses Rcpp and builds fine with all three compilers on appveyor, but generates warnings on CRAN (preventing its acceptance by the CRAN maintainers).
I'd like to be able to generate the errors locally for debugging. The package uses C++11 and links to dplyr. I intend to also file a dplyr issue, but wanted to try to figure out what might be done before. I get several of the following compiler warnings on CRAN, but not on appveyor:
Here's the full build log via
devtools::build_win()
: https://gist.github.com/jayhesselberth/716f36642d6c8e6248553565109168fcThe text was updated successfully, but these errors were encountered: