Remove attributes that are highly varying

.removeCacheAtts(x, passByReference = TRUE)

Arguments

x

Any arbitrary R object that could have attributes

passByReference

Logical. If TRUE, the default, this uses data.table::setattr to remove several attributes that are unnecessary for digesting, specifically tags, .Cache and call