-
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
set automatically allocates new column slots if needed #5269
Open
ben-schwen
wants to merge
27
commits into
master
Choose a base branch
from
set_re-overallocate
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 20 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
53d5160
add re-overallocation to set
ben-schwen a035fbe
refine test
ben-schwen 315eb3c
avoid double substitute by calling Calloccolwrapper directly
ben-schwen b1db2ab
add length check to avoid chmatch
ben-schwen 7146873
add news
ben-schwen 67a0218
alter old test
ben-schwen 6b35f8e
merge master
ben-schwen cda7455
add coverage
ben-schwen b61e7ff
remove old error which is not reachable anymore
ben-schwen 517c62a
grammar
MichaelChirico 7469494
add issue number to tests
ben-schwen e9d0e9c
remove 2nd eval
ben-schwen ca86485
merge master
ben-schwen 592853d
move set to c level
ben-schwen 86dfc42
proper use of alloccol
ben-schwen 3eebecf
update test
ben-schwen 1aa5534
rewrite R call
ben-schwen 249a471
fix tests
ben-schwen f65a8cc
exchange alloccol with shallow
ben-schwen f95c1c4
add test for TRUELENGTH=0 set
ben-schwen e4521a1
rewrite set
ben-schwen 03833c9
Merge branch 'master' into set_re-overallocate
ben-schwen ad8c97d
fix typo
ben-schwen 6fd0907
add tests
ben-schwen 4a96f80
change test numbering
ben-schwen 074b805
add test
ben-schwen 26cdf8f
fix inherits
ben-schwen 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
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.
This
assign()
looks pretty complicated to reason about, I would like to see more tests of robustness here (setDT()
within a function, places whereinherits=TRUE
is important, etc.).At a glance I can't tell why this is needed though -- it definitely warrants a comment explaining why we need to branch.
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.
I simplified now the whole code. I also added a comment why we need the assign.
Ultimately it would be nice to let
set
work also in the cases where it needs to overallocate and is inside a function, howeover, for making this to work we would need to find the right environment where to assign (might not be the first where x is present) and it is not clear whether it would be the last due to scoping