Skip to content

Commit 249a471

Browse files
committed
fix tests
1 parent 1aa5534 commit 249a471

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/data.table.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2718,7 +2718,8 @@ set = function(x,i=NULL,j,value) # low overhead, loopable
27182718
if (is.character(j)) {
27192719
name = substitute(x)
27202720
x = .Call(Cassign,x,i,j,NULL,value)
2721-
assign(as.character(name),x,parent.frame(),inherits=TRUE)
2721+
if (is.name(name))
2722+
assign(as.character(name),x,parent.frame(),inherits=TRUE)
27222723
} else {
27232724
.Call(Cassign,x,i,j,NULL,value)
27242725
}

0 commit comments

Comments
 (0)