Skip to content

Commit

Permalink
PUBDEV-4639: use data.table if possible.
Browse files Browse the repository at this point in the history
  • Loading branch information
wendycwong committed Feb 12, 2020
1 parent cc60c40 commit 5a4c85e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions h2o-r/h2o-package/R/frame.R
Original file line number Diff line number Diff line change
Expand Up @@ -3293,13 +3293,13 @@ use.package <- function(package,
is.character(version), length(version)==1L,
is.logical(use), length(use)==1L)

# if (package=="data.table" && use) { # not sure if this is needed. Keeping it for now.
# if (!("bit64" %in% rownames(installed.packages())) || (packageVersion("bit64") < as.package_version("0.9.7"))) {
# # print out warning to install bit64 in order to use data.table
# warning("data.table cannot be used without R package bit64 version 0.9.7 or higher. Please upgrade to take advangage of data.table speedups.")
# return(FALSE)
# }
# }
if (package=="data.table" && use) { # not sure if this is needed. Keeping it for now.
if (!("bit64" %in% rownames(installed.packages())) || (packageVersion("bit64") < as.package_version("0.9.7"))) {
# print out warning to install bit64 in order to use data.table
warning("data.table cannot be used without R package bit64 version 0.9.7 or higher. Please upgrade to take advangage of data.table speedups.")
return(FALSE)
}
}
use && requireNamespace(package, quietly=TRUE) && (packageVersion(package) >= as.package_version(version))
}

Expand Down

0 comments on commit 5a4c85e

Please sign in to comment.