简体   繁体   中英

Unable to use FSelector package in R on mac OS X El Capitan

I'm using OS X El Capitan Version 10.11.3 now.

When I tried to use library(FSelector) in R, errors pop out saying:

JavaVM: requested Java version ((null)) not available. Using Java at "" instead.
JavaVM: Failed to load JVM: /bundle/Libraries/libserver.dylib
JavaVM FATAL: Failed to load the jvm library.
Error : .onLoad failed in loadNamespace() for 'RWekajars', details:
  call: .jinit()
  error: JNI_GetCreatedJavaVMs returned -1

Error: package or namespace load failed for ‘FSelector’

Also, same thing happened when I tried library(Rweka) and library(Rwekajars) .

Why this happens and how to solve it?

Type this into the console

java -version

Then it will prompt you to install the Java SDK.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM