java -cp .:weka.jar weka.Run .PCR -t /Users/mjh/Documents/Weka/CNIRS/calibration2.arff -T /Users/mjh/Documents/Weka/CNIRS/test2.arff [Weka] RPlugin can't be loaded because the environment variable R_HOME is not set. [Weka] RPlugin can't be loaded because the environment variable R_HOME is not set java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.(ZipFile.java:221) at java.util.zip.ZipFile.(ZipFile.java:151) at java.util.jar.JarFile.(JarFile.java:165) at java.util.jar.JarFile.(JarFile.java:129) at weka.core.ClassCache.initFromJar(ClassCache.java:289) at weka.core.ClassCache.initFromClasspathPart(ClassCache.java:355) at weka.core.ClassCache.initialize(ClassCache.java:376) at weka.core.ClassCache.(ClassCache.java:111) at weka.core.ClassDiscovery.initCache(ClassDiscovery.java:447) at weka.core.ClassDiscovery.clearCache(ClassDiscovery.java:481) at weka.Run.findSchemeMatch(Run.java:80) at weka.Run.findSchemeMatch(Run.java:124) at weka.Run.main(Run.java:190) Comp # Correlation RMSE ###### ########### #### Jun 07, 2016 5:04:56 PM com.github.fommil.jni.JniLoader liberalLoad INFO: successfully loaded /var/folders/nh/2yzwp0g119d794lrrfwkn9ym0000gp/T/jniloader2547660200789770546netlib-native_system-osx-x86_64.jnilib Jun 07, 2016 5:07:09 PM com.github.fommil.jni.JniLoader load INFO: already loaded netlib-native_system-osx-x86_64.jnilib 4 0.8747570097671272 0.021506002577692723 2092 0.7465108317842789 0.03211156619210283 1048 0.8273515637636053 0.02585619641870109 526 0.8757957349817499 0.02174738801921099 265 0.9127088434201658 0.01820725790748553 135 0.9996784047508034 0.0011313801769545179 70 0.9996369470883796 0.0011979016430564828 102 0.9997694468679889 9.55872408175966E-4 118 0.9996786044208729 0.0011416645650404067 110 0.9998005937512658 8.92003945301224E-4 Best number of components found was 110 weka.classifiers.functions.PCR@6b4a4e18 Time taken to build model: 1119.16 seconds Time taken to test model on training data: 1.14 seconds === Error on training data === Correlation coefficient 1 Mean absolute error 0.0003 Root mean squared error 0.0004 Relative absolute error 0.8344 % Root relative squared error 0.9441 % Total Number of Instances 144 === Error on test data === Correlation coefficient 0.9991 Mean absolute error 0.0015 Root mean squared error 0.0021 Relative absolute error 3.7863 % Root relative squared error 4.5234 % Total Number of Instances 36