我正在研究情绪分析。我正在尝试使用Rsentiment包来获取我的数据集的每个句子的分数。当我运行该命令时,我收到一条与Java问题相关的警告消息。你们有没有人有任何建议?我在Macbook上运行它。这是我收到的消息:
Unable to find any JVMs matching version "(null)".
No Java runtime present, try --request to install.
Errore: package or namespace load failed for ‘rJava’:
.onLoad failed in loadNamespace() for 'rJava', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.4/Resources/library/rJava/libs/rJava.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.4/Resources/library/rJava/libs/rJava.so, 6): Library not loaded: @rpath/libjvm.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/3.4/Resources/library/rJava/libs/rJava.so
Reason: image not found
Inoltre: Warning message:
running command '/usr/libexec/java_home' had status 1