Skip to content
Prev 38131 / 63424 Next

"$<-" fails (invalid subscript type 'language')

Simon Urbanek <simon.urbanek at r-project.org> writes:
Oh,  that was really stupid from my part. I meant that functionality for my
specific class, not for lists of course.

For list I would expect, 

`$<-`(tl, tv[[1]], "sdfdsfdsfsd")
 tl$`tv[[1]]` <- "sdfdsfdsfsd"

to give the same result.

I just gave this artificial example with lists to illustrate the error. Didn't
want to bring the definition of my classes here.

Vitalie.