-
Notifications
You must be signed in to change notification settings - Fork 990
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
Replace integers with explicit integers (1 -> 1L, etc.) #2573
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
ee82f0f
Replace integers with explicit integers (1 -> 1L, etc.)
6afb0ee
add some tests, comments
4c8162d
simplify verbose timing calls (including some undiscovered typos)
e727345
Merge branch 'master' into explicitIntegers
MichaelChirico 7c73e5b
more tests
70e23cc
Merge branch 'master' into explicitIntegers
MichaelChirico 689e737
more tests (foverlaps, verbosity)
c900500
Merge branch 'master' into explicitIntegers
mattdowle f199e12
Create SDenv$.GRP and .N with explicit new vector() in anticipation o…
mattdowle 87af37c
Merge branch 'master' into explicitIntegers
mattdowle b5c482b
add some nocov, reinstate some code in comments
1e4e2cb
merge recent commits
3afa577
merge conflicts
4c449d1
more nocov tags
64b88ff
another merge fix?
f1976f3
Removed nocov start/end from test.data.table.R to see why those might…
mattdowle 6b793a1
Focussed nocov in test.data.table. Removed (unused) factor comparison…
mattdowle 701a9d8
Reverted commenting-out to avoid duplicated 4 lines and to keep if() …
mattdowle 5be3049
A few more 0->0L. Also, timetaken() is exported so reverted including…
mattdowle File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@mattdowle what about two functions,
timestart
andtimetaken
?timestart
would accept a message as input,cat
it,flush.console()
s and return theproc.time()
;timetaken
takes the result oftimestart
,cat
s it, andflush.console()
, and returns nothing.(also perhaps this should be done as a separate PR?)
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.
Yes separate PR. Sometimes there are several nested timing blocks in play. Storing the
started.at
time in a variable and then passing that (or the appropriate one) totimetaken
I think I like the balance of using a common function along with the flexibility of using it in different ways depending on the circumstances. i.e. currenttimetaken()
approach, but actually using it here. IIUC.