Skip to content

Commit

Permalink
Handle(ish) multiple objects being added at once
Browse files Browse the repository at this point in the history
  • Loading branch information
mojaveazure committed Dec 10, 2019
1 parent 328f5c3 commit 1448774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/objects.R
Original file line number Diff line number Diff line change
Expand Up @@ -6142,7 +6142,7 @@ setMethod( # because R doesn't allow S3-style [[<- for S4 classes
} else {
make.names(names = i)
}
if (i != newi) {
if (any(i != newi)) {
warning(
"Invalid name supplied, making object name syntactically valid. New object name is ",
newi,
Expand Down

0 comments on commit 1448774

Please sign in to comment.