Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
8662e36d
Unverified
Commit
8662e36d
authored
Aug 18, 2020
by
James Lamb
Committed by
GitHub
Aug 17, 2020
Browse files
[ci] Test 32-bit builds for R package (#3311)
* [ci] Test 32-bit builds for R package * update README * empty commit
parent
e9fbd19d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
.ci/test_r_package_windows.ps1
.ci/test_r_package_windows.ps1
+8
-2
R-package/README.md
R-package/README.md
+1
-1
No files found.
.ci/test_r_package_windows.ps1
View file @
8662e36d
...
...
@@ -158,8 +158,14 @@ if ($env:COMPILER -ne "MSVC") {
cd
"C:\
$R_CMD_CHECK_DIR
\"
}
Write-Output
"Running R CMD check as CRAN"
Run-R-Code-Redirect-Stderr
"result <- processx::run(command = 'R.exe', args = c('CMD', 'check', '--no-multiarch', '--as-cran', '--run-dontrun', '
$PKG_FILE_NAME
'), echo = TRUE, windows_verbatim_args = FALSE)"
;
$check_succeeded
=
$?
Write-Output
"Running R CMD check"
if
(
$
env
:
R_BUILD_TYPE
-eq
"cran"
)
{
# CRAN packages must pass without --no-multiarch (build on 64-bit and 32-bit)
$check_args
=
"c('CMD', 'check', '--as-cran', '--run-dontrun', '
$PKG_FILE_NAME
')"
}
else
{
$check_args
=
"c('CMD', 'check', '--no-multiarch', '--as-cran', '--run-dontrun', '
$PKG_FILE_NAME
')"
}
Run-R-Code-Redirect-Stderr
"result <- processx::run(command = 'R.exe', args =
$check_args
, echo = TRUE, windows_verbatim_args = FALSE)"
;
$check_succeeded
=
$?
Write-Output
"R CMD check build logs:"
$INSTALL_LOG_FILE_NAME
=
"lightgbm.Rcheck\00install.out"
...
...
R-package/README.md
View file @
8662e36d
...
...
@@ -26,7 +26,7 @@ To install this package on any operating system:
```
r
PKG_URL
<-
"https://github.com/microsoft/LightGBM/releases/download/v3.0.0rc1/lightgbm-3.0.0-1-r-cran.tar.gz"
remotes
::
install_url
(
PKG_URL
,
INSTALL_OPTS
=
"--no-multiarch"
)
remotes
::
install_url
(
PKG_URL
)
```
### Installing Precompiled Binaries
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment