```r > library(bigmemory) > X <- as.big.matrix(matrix(1:10, nrow = 2L)) > class(X) [1] "big.matrix" attr(,"package") [1] "bigmemory" ``` In other words, if `X` is a global, we should append: ```r packages <- c(packages, attr(class(X), "package")) ```