-
Notifications
You must be signed in to change notification settings - Fork 297
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
accelerate printing #957
accelerate printing #957
Conversation
I see a lot of differences when I run R CMD check. Why is that?
|
It's surprising that travis didn't pick it. In fact I was surprised I didn't have to change more than two tests. I have the same output than travis on my computer. I tried on a different computer I have the same error than you. Do you think we should improve defaults or update the expected outputs? |
It suggests to me that either formatC gives unpredictable outputs, or outputs with much less significant digits than we expect - both do not sound right. We still need a replacement that gives the same output and is sensitive to |
Regarding rounding: iirc one or two years ago there has been a bug report on r-devel that R on windows rounds different than R on Mac/Linux. I checked it and could confirm the problem. As far as I know this was not patched. This might explain, why some (windows) machines bark on certain tests, while other OSes do not. [Edit] This is the report [1]. My findings at that time were:
[1] http://r.789695.n4.nabble.com/Rounding-in-print-summaryDefault-td4734921.html |
It is surprising that it passed both travis AND appveyor checks because appveyor shows differences (travis also).
So two questions: why are build passing? How to get a similar output? (although if even R doesn't achieve it, we might find it difficult.) |
Tests as .R files in the |
I'll close this PR since 90821d8 uses Please reopen if you feel there's something we should finish in this PR. |
This PR uses
formatC
to accelerate printing of geometries. It also has the same behavior than thedigits
option in base R (lwgeom
only offers control for the number of decimals).@harryprince, @JanMarvin, @adrfantini, if you could test your use case and report, that would be super useful. (I did test with the #703 data.)
close #800, #947, #703, #747, #703
related #713