Skip to content

Windows: Emulating win-builder (uses --force-multiarch) #66

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

Closed
HenrikBengtsson opened this issue Feb 27, 2017 · 2 comments
Closed

Windows: Emulating win-builder (uses --force-multiarch) #66

HenrikBengtsson opened this issue Feb 27, 2017 · 2 comments

Comments

@HenrikBengtsson
Copy link
Contributor

If there's also an objective to emulate the win-builder service, then I pretty sure that one uses R CMD check option --mutiarch:

  --force-multiarch run tests on all sub-archs even for packages
                    with no compiled code

because also for packages using pure-R code, you'll get:

* checking examples ...
** running examples for arch 'i386' ... [12s] OK
** running examples for arch 'x64' ... [15s] OK
* checking for unstated dependencies in 'tests' ... OK
* checking tests ...
** running tests for arch 'i386' ... [168s] OK
[...]
** running tests for arch 'x64' ... [62s] OK

Note, however, from the CRAN check logs, it appear that the CRAN servers are NOT using --force-multiarch. So, I don't know how relevant it is to reproduce win-builder per se.

Background: I discovered this with a package where I get an error in the 'x64' tests, because the 'i386' tests generates some files that 'x64' tests don't expect to be there. In other words, the error does not appear if one run the two architechtures independently of each other (as one can do on AppVeyor).

@gaborcsardi
Copy link
Collaborator

Hmmm. I am not sure TBH.

In the worst case you can always add --force-multiarch using the check_args argument to check(). Isn't that good enough?

@HenrikBengtsson
Copy link
Contributor Author

I tend to agree with you that there's little need to have rhub reproduce the win-builder services. This is more an issue with win-builder behaving differently than the CRAN test servers and one could argue that R CMD check should assert that there's no bleed-over from tests on one architecture to the following one. So, this should probably be reported to CRAN instead. And, in the end of the day, this is a bug in how the tests were written.

However, now it is at least documented in the wide open so if anyone else might find this from a web search.

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

2 participants