r-lib / rlang

Low-level API for programming with R
https://rlang.r-lib.org
Other
502 stars 140 forks source link

Feature request: add function to modify an atomic vector in place #1673

Closed Yunuuuu closed 10 months ago

Yunuuuu commented 10 months ago

Feature request: Kindly evaluate the possibility of implementing a function that enables direct modification of an atomic vector, similar to the functionality provided by data.table's set function. The objective is to seamlessly and efficiently alter the atomic vector within its current storage space.

lionel- commented 10 months ago

Hello, unfortunately this is out of scope for rlang. See vec_poke_n() and vec_poke_range() though but these are experimental functions that may get removed from rlang.