chunkexpr replaces variables in an expression with a indexed version. It main use it to rewrite "normal" R expression into chunked versions that can be evaluated in a chunked-for-loop.
chunkexpr(expr, x = all.vars(expr), i = ".i", prefix = "")expression vector or language object
character with variables to be chunked
name of index that will be used in the for loop, typically a ri or hi.
prefix for variables to be replaced.