diff --git a/R-package/NAMESPACE b/R-package/NAMESPACE index 7aef39a1f6de..14db7ba98d6c 100644 --- a/R-package/NAMESPACE +++ b/R-package/NAMESPACE @@ -36,6 +36,7 @@ export(saveRDS.lgb.Booster) export(setinfo) export(slice) import(methods) +importFrom(Matrix,Matrix) importFrom(R6,R6Class) importFrom(data.table,":=") importFrom(data.table,as.data.table) diff --git a/R-package/R/lightgbm.R b/R-package/R/lightgbm.R index 9459ccc4d5c4..12640ecfb0af 100644 --- a/R-package/R/lightgbm.R +++ b/R-package/R/lightgbm.R @@ -178,6 +178,7 @@ NULL # Various imports #' @import methods +#' @importFrom Matrix Matrix #' @importFrom R6 R6Class #' @useDynLib lib_lightgbm , .registration = TRUE NULL