[R] Bump requirement to 4.3.0. (#9847)

This commit is contained in:
Jiaming Yuan
2023-12-07 00:12:45 +08:00
committed by GitHub
parent 1de3f4135c
commit 4bc1f3a388
4 changed files with 15 additions and 4 deletions

View File

@@ -14,6 +14,15 @@ if(ENABLE_ALL_WARNINGS)
target_compile_options(xgboost-r PRIVATE -Wall -Wextra)
endif()
if(MSVC)
# https://github.com/microsoft/LightGBM/pull/6061
# MSVC doesn't work with anonymous types in structs. (R complex)
#
# syntax error: missing ';' before identifier 'private_data_c'
#
target_compile_definitions(xgboost-r PRIVATE -DR_LEGACY_RCOMPLEX)
endif()
target_compile_definitions(
xgboost-r PUBLIC
-DXGBOOST_STRICT_R_MODE=1

View File

@@ -58,7 +58,7 @@ Suggests:
float,
titanic
Depends:
R (>= 3.3.0)
R (>= 4.3.0)
Imports:
Matrix (>= 1.1-0),
methods,