Retain attributes when combining cran_deps + remote_deps#300
Closed
Retain attributes when combining cran_deps + remote_deps#300
Conversation
cran_deps bears the `type` attribute
d664b31 to
5b86a48
Compare
This reverts commit 6e92e65.
Member
Author
|
This PR passed tests (with 1 skipped test) everywhere but R-devel on travis, so I think that difficulty is orthogonal to this. |
Member
Author
|
Maybe getting closer to the root cause ... I think this row indexing is where the Lines 148 to 152 in 6212345 df <- data.frame(a = 1:3)
attr(df, "yo") <- "hi"
attr(df, "yo")
#> [1] "hi"
attr(df[1, ], "yo")
#> NULLCreated on 2019-02-20 by the reprex package (v0.2.1.9000) So my fix of inverting the order inside |
Member
Author
|
Closing in favour of #304 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
cran_depsbears thetypeattributeThis fixes the problem I described in slack.
The order of arguments in
rbind()affects the attributes of the resulting data frame.Created on 2019-02-19 by the reprex package (v0.2.1.9000)
I don't know why other people aren't seeing this, so perhaps there is more going on? But this fixes things for me.