It is not clear why, but it appears that running lobstr::obj_size again, after a bad binding error, it will work.

.objSizeWithTry(x, useTry = TRUE)

Arguments

x

An object

useTry

Logical. If TRUE, the default, then it will use try. Can optionally avoid this if set to FALSE. The try takes sufficient extra compute time that it is worth avoiding it if possible.

Value

The size of an object, using lobstr::obj_size or object.size if the first fails