[R] make all customizations to meet strict standard of cran

This commit is contained in:
tqchen
2016-01-15 16:41:06 -08:00
parent 634db18a0f
commit 1495a43cea
23 changed files with 397 additions and 75 deletions

View File

@@ -334,7 +334,8 @@ class LearnerImpl : public Learner {
// in distributed mode, use safe choice otherwise
size_t max_row_perbatch = tparam.max_row_perbatch;
if (tparam.test_flag == "block" || tparam.dsplit == 2) {
max_row_perbatch = std::min(32UL << 10UL, max_row_perbatch);
max_row_perbatch = std::min(
static_cast<size_t>(32UL << 10UL), max_row_perbatch);
}
// initialize column access
p_train->InitColAccess(enabled,