Shap Summary Function Failing

I’m attempting to use the xgb.ggplot.shap.summary() function in the R xgboost package (version 1.4.1.1) and finding an error. Using the example in the documentation, running the following on a clean workspace:

library("xgboost")

data(agaricus.train, package='xgboost')
data(agaricus.test, package='xgboost')

bst <- xgboost(agaricus.train$data, agaricus.train$label, nrounds = 50,
               eta = 0.1, max_depth = 3, subsample = .5,
               method = "hist", objective = "binary:logistic", nthread = 2, verbose = 0)

contr <- predict(bst, agaricus.test$data, predcontrib = TRUE)
xgb.ggplot.shap.summary(agaricus.test$data, contr, model = bst, top_n = 12) 

I get the following error:

Error: ‘merge.data.table’ is not an exported object from ‘namespace:data.table’

Is there something I’m missing?