Set the flag sparse of the LinOp object
sparse
.LinOp__set_sparse(xp, sparseSEXP)
xp
sparseSEXP
Useful links