Current implementation of assign_in, update_in and pluck<- doesn't create new elements.
This is in contrast to [[<- semantics and most importantly to the parallel functional tooling in other languages (clojure, python).
assign_in(list(), "aa", 34)
#> Error: Plucked object must have at least one element
pluck(list(), "aa") <- 34
#> Error in pluck(list(), "aa") <- 34: invalid (NULL) left side of assignment
Moreover, this is inconsistent with pluck itself which returns NULL on missing elements. So one would expect no error for missing elements in pluck<- as well.
Seems related: #636
Current implementation of
assign_in,update_inandpluck<-doesn't create new elements.This is in contrast to
[[<-semantics and most importantly to the parallel functional tooling in other languages (clojure, python).Moreover, this is inconsistent with
pluckitself which returnsNULLon missing elements. So one would expect no error for missing elements inpluck<-as well.Seems related: #636