[英]R error trying to load qdap package
So I am trying to run the 所以我试图运行
library(ggplot2)
library(qdap)
but this error keeps coming up: 但是这个错误不断出现:
Unable to find any JVMs matching version "(null)".
No Java runtime present, try --request to install.
Error: package or namespace load failed for ‘qdap’:
.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
In addition: Warning message:
running command '/usr/libexec/java_home' had status 1
I am using R in Rstudio on a mac, and I've trawled through quite a few similar questions but none seem to work. 我在Mac上使用R在Rstudio中,我已经搜索了很多类似的问题,但似乎都没有用。 I am quite new to using R and any help would be great thanks.
我很擅长使用R,任何帮助都会非常感谢。
I tried using 我试过用
install.packages("openNLPdata")
and this showed up which I think is a good thing 这表明我觉得这是一件好事
trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.4/openNLPdata_1.5.3-4.tgz'
Content type 'application/x-gzip' length 7323402 bytes (7.0 MB)
==================================================
downloaded 7.0 MB
The downloaded binary packages are in
/var/folders/h5/_5bjqp9j0g5gqr1794sw1xwh0000gn/T//RtmpaknsV6/downloaded_packages
But the error still occurs. 但错误仍然存在。
Thanks in advance 提前致谢
It seems like that package might need rJava to run, which may not be loaded in your environment. 看起来这个包可能需要运行rJava,这可能无法在您的环境中加载。 Try:
尝试:
install.packages('rJava')
library('rJava')
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.