R/dependencies.R

spark_dependencies <- function(spark_version, scala_version, ...) {
  graphframes_version <- if (spark_version >= "2.2.0") {
    "0.6.0"
  } else {
    "0.5.0"
  }

  spark_dependency(
    jars = NULL,
    packages = c(
      sprintf(
        "graphframes:graphframes:%s-spark%s-s_%s",
        graphframes_version,
        spark_version,
        scala_version
      )
    )
  )
}

.onLoad <- function(libname, pkgname) {
  sparklyr::register_extension(pkgname)
}

Try the graphframes package in your browser

Any scripts or data that you put into this service are public.

graphframes documentation built on May 2, 2019, 9:14 a.m.