Skip to content

Commit

Permalink
[SW-1848] Cleanup package.R in RSparkling
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubhava committed Jan 27, 2020
1 parent 0463669 commit 681c049
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions r/src/R/package.R
@@ -1,17 +1,7 @@
#' @importFrom utils capture.output browseURL
#' @importFrom sparklyr spark_dependency register_extension invoke_static invoke spark_connection spark_dataframe sdf_register spark_context
#' @importFrom h2o h2o.getFrame h2o.getId h2o.init
#' @importFrom utils read.table
#' @importFrom utils packageVersion
NULL



# Verify H2O version
verify_h2o_version <- function(h2o_version, h2o_build_name, h2o_build_version, sw_version) {
current_h2o_version <- paste(packageVersion("h2o"))
if (current_h2o_version != h2o_version) {
message(paste0('\nDetected H2O ', current_h2o_version ,'. Please install H2O ', h2o_version ,', which is required for Sparkling Water ', sw_version ,'.\n
current_h2o_version <- paste(packageVersion("h2o"))
if (current_h2o_version != h2o_version) {
message(paste0('\nDetected H2O ', current_h2o_version, '. Please install H2O ', h2o_version, ', which is required for Sparkling Water ', sw_version, '.\n
To update your h2o R package, copy/paste the following commands and then restart your R session:
Expand All @@ -23,7 +13,6 @@ verify_h2o_version <- function(h2o_version, h2o_build_name, h2o_build_version, s
}
}


# Define required spark packages
spark_dependencies <- function(spark_version, scala_version, ...) {

Expand All @@ -43,4 +32,3 @@ spark_dependencies <- function(spark_version, scala_version, ...) {
.onLoad <- function(libname, pkgname) {
register_extension(pkgname)
}

0 comments on commit 681c049

Please sign in to comment.