############################################################################## ############################################################################## ### ### Running command: ### ### /Library/Frameworks/R.framework/Resources/bin/R CMD build --keep-empty-dirs --no-resave-data sarks ### ############################################################################## ############################################################################## * checking for file ‘sarks/DESCRIPTION’ ... OK * preparing ‘sarks’: * checking DESCRIPTION meta-information ... OK * installing the package to build vignettes ----------------------------------- * installing *source* package ‘sarks’ ... ** using staged installation ** R ** data ** inst ** byte-compile and prepare package for lazy loading Warning in fun(libname, pkgname) : JAVA_HOME is set incorrectly! Ingoring. The operation couldn’t be completed. Unable to locate a Java Runtime. Please visit http://www.java.com for information on installing Java. Warning in system("/usr/libexec/java_home", intern = TRUE) : running command '/usr/libexec/java_home' had status 1 Warning in fun(libname, pkgname) : Cannot find JVM library 'NA/lib/server/libjvm.dylib' Install Java and/or check JAVA_HOME (if in doubt, do NOT set it, it will be detected) Error: .onLoad failed in loadNamespace() for 'rJava', details: call: fun(libname, pkgname) error: JVM could not be found Execution halted ERROR: lazy loading failed for package ‘sarks’ * removing ‘/private/tmp/RtmpfO3n7P/Rinst14a9260beb09a/sarks’ ----------------------------------- ERROR: package installation failed