Given a set of scala source files, compile them
into a Java Archive (jar).
Usage
spark_compile(
jar_name,
spark_home = NULL,
filter = NULL,
scalac = NULL,
jar = NULL,
jar_dep = NULL,
embedded_srcs = "embedded_sources.R"
)Arguments
- spark_home
The path to the Spark sources to be used alongside compilation.
- filter
An optional function, used to filter out discovered
scalafiles during compilation. This can be used to ensure that e.g. certain files are only compiled with certain versions of Spark, and so on.- scalac
The path to the
scalacprogram to be used, for compilation ofscalafiles.- jar
The path to the
jarprogram to be used, for generating of the resultingjar.- jar_dep
An optional list of additional
jardependencies.- embedded_srcs
Embedded source file(s) under
<R package root>/javato be included in the root of the resulting jar file as resources