Skip to content

Commit 390a9a3

Browse files
switch to %iscall%
1 parent f0c8503 commit 390a9a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/data.table.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ replace_dot_alias = function(e) {
131131
.reassign_extracted_table = function(name, value, env, err_msg_detail, err_msg_na) {
132132
k = eval(name[[2L]], env, env)
133133
if (is.list(k)) {
134-
origj = j = if (name[[1L]] == "$") as.character(name[[3L]]) else eval(name[[3L]], env, env)
134+
origj = j = if (name %iscall% "$") as.character(name[[3L]]) else eval(name[[3L]], env, env)
135135
if (length(j) != 1L) {
136136
stopf(
137137
"Cannot assign with a recursive index of length %d. The syntax %s is only valid when the index is length 1.",

0 commit comments

Comments
 (0)