It seems that knitr doesn\'t understand that DT[, a:=1] should not result in an output of DT to the document. Is there a way to stop
knitr
DT[, a:=1]
DT
I've run across the same problem and I solved it fairly easy by re-assigning the variable. In your case:
DT <- DT[, ':=' (c, 5)]
It's a bit more verbose though, especially if the variable name is big.