Skip to content

Commit e7d5cd4

Browse files
committed
use names<- instead of attr<-
1 parent c3950f4 commit e7d5cd4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

R/fload.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ fload <- function(json,
196196
)
197197

198198
if (always_list && length(json) == 1L) {
199-
`attr<-`(list(out), "names", names(json))
199+
`names<-`(list(out), names(json))
200200
} else {
201201
out
202202
}

R/fparse.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ fparse <- function(json,
344344
)
345345

346346
if (always_list && length(json) == 1L) {
347-
`attr<-`(list(out), "names", names(json))
347+
`names<-`(list(out), names(json))
348348
} else {
349349
out
350350
}

0 commit comments

Comments
 (0)