HyukjinKwon commented on a change in pull request #32285: URL: https://github.com/apache/spark/pull/32285#discussion_r618097706
########## File path: project/SparkBuild.scala ########## @@ -888,6 +892,22 @@ object PySparkAssembly { } +object SparkR { + import scala.sys.process.Process + + val buildRPackage = taskKey[Unit]("Build the R package") + lazy val settings = Seq( + buildRPackage := { + val command = baseDirectory.value / ".." / "R" / "install-dev.sh" + Process(command.toString).!! + }, + (Compile / compile) := { + buildRPackage.value Review comment: I think we build SparkR after the compilation of core so the order should probably be switched with the next line. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org