Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdding calcUnique option to only pass unique values to anytime_cpp() … #110
Conversation
…and thereby speed up calcualtions with repeated inputs to x.
|
Sorry about all of the whitespace changes ... I can't figure out how to turn them off in the pull request. |
Codecov Report
@@ Coverage Diff @@
## master #110 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 5 5
Lines 230 237 +7
=====================================
+ Hits 230 237 +7
Continue to review full report at Codecov.
|
|
Two things, quickly:
So select 'hide all whitespace changes' and then hit 'reload'.
|
|
As I suspected: edd@rob:~/git/anytime/R(pr-110)$ file anytime.R # on your branch, locally checked out
anytime.R: ASCII text, with CRLF line terminators
edd@rob:~/git/anytime/R(pr-110)$ git co -
Switched to branch 'master'
Your branch is up to date with 'origin/master'.
edd@rob:~/git/anytime/R(master)$ file anytime.R # master
anytime.R: ASCII text
edd@rob:~/git/anytime/R(master)$ |
|
@stephenbfroehlich I presume you are ok with the changes I made
|
|
Yes, you're correct. The extra testing lines were something I simply wasn't familiar with to the point where I thought to anticipate them, and code testing coverage is a completely new concept to me, so I'm just following along to learn at this point. So thanks ... and it all looks good ... As far as I can tell, there is nothing for me to do to formally approve the new commits ... is that right? |
|
Code coverage is a bit of a "game" - I was initially against it because it too obviously cheaply overriden as I have done here, but it has also saved me in the past. Tests are good, so focus more on the (simple, good enough) one I added: simply comparing results with / without your change. Thanks again for the PR. We are good now -- I was the one approving your changes (and then we inverted it informally as I made some changes). Glad you got it all working. One, last, final tip: I even move between machines via git(hub): commit from (Windows) laptop, onto branch or fork where no "harm is done", check out on Linux box, test some more, push back to git(hub) if needed. One of the key things with git that will really grow on you is ... that all that messy manual scp or dropbox or ... business is gone and ALL changes become transactional, and thereby reversible. It's worth it. |
|
And I just made one more change I had meant to make earlier: immportalise you in ChangeLog. |
|
With my own repos, I do that ... I just had no idea how to check out yours until today. Thanks again. |

…and thereby speed up calcualtions with repeated inputs to x.