-
Notifications
You must be signed in to change notification settings - Fork 34
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
with_build_tools fails on CRAN when building the prophet package #54
Comments
I think I have a viable workaround for the prophet case in rstan, so resolving this issue is not that urgent. |
I'm not familiar with pkgbuild and don't really know where to start at resolving this issue. What's happening in
Is your workaround something we can easily adjust in our build process? |
The workaround is on the rstan side: specify required = FALSE in
with_build_tools() when in the environmental variables for install.libs.R
have been set and hope the build tools are actually present. I'm sure they
are present on CRAN's windows servers but I don't know why pkgbuild thinks
otherwise.
|
Following up, the aforementioned workaround does allow prophet to install on CRAN's Windows servers, but there is still a warning. The issue seems to be related to multiarch
Full log: |
We're about to submit Prophet 0.4 to CRAN. I'm going to link to this issue in the submission comments and hopefully that satisfies Uwe. |
Just a heads up that we have been unable to satisfy the CRAN maintainers with the WARNING on windows due to this issue. We currently can't update the Prophet package on CRAN. We're switching our docs to recommend using devtools for installation for the time being. |
The issue is largely stemming because you are trying to compile from within install.iibs.R Notably this function is run from the 64 bit version of R for both architectures on Windows, but the Options to remedy this are
The first option is probably the cleanest, but the second is simpler to implement. I checked this approach with win-builder and it fixes the WARNING you have observed, although there seem to be additional test failures unrelated to this problem. I opened a PR with this approach facebook/prophet#776 |
Thanks @jimhester this is super helpful. I really appreciate you looking into this. We'll use (1) for now and move to (2) in our next release. I think we always knew |
I have started using pkgbuild internally in rstan, not to build a package but to build dynamic loaded shared objects via
inline::cxxfunction
. This looks like it will be a big help for Windows users and it is working fine in most cases, including in many packages that depend on rstan.However, the prophet package maintained by @seanjtaylor and @bletham is the one package that imports rstan that is failing to build on CRAN for all flavors of Windows, with
For the full-log see, e.g.
https://www.r-project.org/nosvn/R.check/r-devel-windows-ix86+x86_64/prophet-00install.html
The prophet package has an unusual build process that utilizes a
src/install_libs.R
file that callsrstan::stan_model
https://github.com/facebook/prophet/blob/master/R/src/install.libs.R#L14
which ultimately calls
pkgbuild::with_build_tools(inline::cxxfunction(...))
https://github.com/stan-dev/rstan/blob/develop/rstan/rstan/R/cxxfunplus.R#L152
But I have no idea why
with_build_tools
would think RTools is not installed on the Windows server that tests R packages.The text was updated successfully, but these errors were encountered: