-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes R CHECK warnings and problems on some platforms
- Loading branch information
Showing
3 changed files
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
|
||
## Use the R_HOME indirection to support installations of multiple R version | ||
## PKG_LIBS = $(shell "${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" -e "Rcpp:::LdFlags()") $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS) | ||
PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS) $(SHLIB_OPENMP_CFLAGS) | ||
PKG_CFLAGS = $(SHLIB_OPENMP_CFLAGS) | ||
PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS) $(SHLIB_OPENMP_CXXFLAGS) | ||
PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f3f4250
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jkrijthe Were you able to figure out the cause for the check failure on 32-bit Windows? I'm getting related errors on the same platform for scater, probably due to failed check above.
f3f4250
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, unfortunately I was not, but indeed, if I remember correctly, this was only happening on 32-bit Windows. For this first test, the slight numerical differences might add up faster than on other platforms, but I did not have time or convenient access to 32-bit Windows (other than through r-hub) to thoroughly get into this. Would love to hear if you find out more.
f3f4250
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, good, you were able to trigger the error via rhub. In that case, I'll give it a go tomorrow, it should be possible to at least narrow down the cause. Was it the exact or approximate algorithms (or both)?
f3f4250
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that I checked the emails again, I'm not sure whether I tried to debug it through the rhub builds or the winbuilder builds. Unfortunately I do not have the logs anymore to see whether it was the exact or inexact test that failed.
f3f4250
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm... it passes r-hub's windows devel without problems, while the release build is not being co-operative (just times out, probably a build system issue). From reading the code, my best guess is that the discrepancy is due to the distance calculations. Yours have the form:
... while R's
dist()
does something like:The former may use extended precision throughout the entire calculation, while the latter forces a round-off after the subtraction. This may be enough to introduce small differences in the distance calculations, possibly only for i386 depending on the compiler settings.
f3f4250
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense. Thanks for looking into this.