Fix travis build (+1 squashed commit)

Squashed commits:
[9240d5f] Fix Travis build
This commit is contained in:
terrytangyuan
2015-10-28 23:49:18 -04:00
parent 6024480400
commit 5b9e071c18
5 changed files with 9 additions and 3 deletions

View File

@@ -125,7 +125,7 @@ treeDump <- function(feature_names, text, keepDetail){
}
linearDump <- function(feature_names, text){
which(text == "weight:") %>% {a <- . + 1; text[a:length(text)]} %>% as.numeric %>% data.table(Feature = feature_names, Weight = .)
which(text == "weight:") %>% {a =. + 1; text[a:length(text)]} %>% as.numeric %>% data.table(Feature = feature_names, Weight = .)
}
# Avoid error messages during CRAN check.