Skip to content

Commit

Permalink
[R-package] Update dependencies from CMake-based installation (#6906)
Browse files Browse the repository at this point in the history
* remove stringi
* add Matrix and jsonlite
  • Loading branch information
jameslamb authored Apr 28, 2021
1 parent ef473b1 commit 20f34d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/RPackageInstall.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 20f34d9

Please sign in to comment.