From 20f34d9776d705348264b3175418eb522a775f3a Mon Sep 17 00:00:00 2001 From: James Lamb Date: Wed, 28 Apr 2021 12:32:01 -0500 Subject: [PATCH] [R-package] Update dependencies from CMake-based installation (#6906) * remove stringi * add Matrix and jsonlite --- cmake/RPackageInstall.cmake.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/RPackageInstall.cmake.in b/cmake/RPackageInstall.cmake.in index 3701518fb339..20015f4c8726 100644 --- a/cmake/RPackageInstall.cmake.in +++ b/cmake/RPackageInstall.cmake.in @@ -27,7 +27,7 @@ file(WRITE "${build_dir}/R-package/src/Makevars.win" "all:") # Install dependencies set(XGB_DEPS_SCRIPT - "deps = setdiff(c('data.table', 'magrittr', 'stringi'), rownames(installed.packages())); if(length(deps)>0) install.packages(deps, repo = 'https://cloud.r-project.org/')") + "deps = setdiff(c('data.table', 'jsonlite', 'magrittr', 'Matrix'), rownames(installed.packages())); if(length(deps)>0) install.packages(deps, repo = 'https://cloud.r-project.org/')") check_call(COMMAND "${LIBR_EXECUTABLE}" -q -e "${XGB_DEPS_SCRIPT}") # Install the XGBoost R package