[R] AppVeyor CI for R package (#2954)

* [R] fix finding R.exe with cmake on WIN when it is in PATH

* [R] appveyor config for R package

* [R] wrap the lines to make R check happier

* [R] install only binary dep-packages in appveyor

* [R] for MSVC appveyor, also build a binary for R package and keep as an artifact
This commit is contained in:
Vadim Khotilovich
2017-12-17 16:37:45 -06:00
committed by GitHub
parent 4fa917b19f
commit 76f8f51438
5 changed files with 85 additions and 9 deletions

View File

@@ -82,5 +82,5 @@ function(setup_rpackage_install_target rlib_target build_dir)
if(length(deps)>0) install.packages(deps, repo = 'https://cloud.r-project.org/')")
install(CODE "execute_process(COMMAND \"${LIBR_EXECUTABLE}\" \"-q\" \"-e\" \"${XGB_DEPS_SCRIPT}\")")
install(CODE "execute_process(COMMAND \"${LIBR_EXECUTABLE}\" CMD INSTALL\
\"--no-multiarch\" \"${build_dir}/R-package\")")
\"--no-multiarch\" \"--build\" \"${build_dir}/R-package\")")
endfunction(setup_rpackage_install_target)