繁体   English   中英

R .jfindClass(as.character(driverClass)[1])中的错误:找不到类

[英]R Error in .jfindClass(as.character(driverClass)[1]) : class not found

尝试在R中安装stringi软件包,但在下面得到奇怪的错误消息。

Loading required package: DBI
Loading required package: rJava
Error in .jfindClass(as.character(driverClass)[1]) : class not found
Calls: JDBC -> is.jnull -> .jfindClass
Execution halted
Warning in install.packages :
  installation of package ‘stringi’ had non-zero exit status

在其他帖子中查找,但它们都与数据库驱动程序有关。 不知道在我的情况下可能是什么原因引起的,任何帮助表示赞赏。 非常感谢。

规格:Mac OSX,R Studio,R版本为3.2.0。

更新:

显然,此问题也发生在其他软件包的安装上。 下面是尝试安装DierckxSpline时的输出。

> install.packages("DierckxSpline", repos="http://R-Forge.R-project.org")
Warning in install.packages :
  dependency ‘PolynomF’ is not available
also installing the dependency ‘fda’

Warning in install.packages :
  cannot open: HTTP status was '404 Not Found'
Warning in install.packages :
  cannot open: HTTP status was '404 Not Found'
Warning in install.packages :
  unable to access index for repository http://R-Forge.R-project.org/bin/macosx/mavericks/contrib/3.2
Package which is only available in source form, and may need compilation of
  C/C++/Fortran: ‘DierckxSpline’
Do you want to attempt to install these from sources?
y/n: y
installing the source packages ‘fda’, ‘DierckxSpline’

trying URL 'http://R-Forge.R-project.org/src/contrib/fda_2.4.4.tar.gz'
Content type 'application/x-gzip' length 1034752 bytes (1010 KB)
==================================================
downloaded 1010 KB

trying URL 'http://R-Forge.R-project.org/src/contrib/DierckxSpline_1.1-9.tar.gz'
Content type 'application/x-gzip' length 785060 bytes (766 KB)
==================================================
downloaded 766 KB

Loading required package: DBI
Loading required package: rJava
Error in .jfindClass(as.character(driverClass)[1]) : class not found
Calls: JDBC -> is.jnull -> .jfindClass
Execution halted
Warning in install.packages :
  installation of package ‘fda’ had non-zero exit status
Loading required package: DBI
Loading required package: rJava
Error in .jfindClass(as.character(driverClass)[1]) : class not found
Calls: JDBC -> is.jnull -> .jfindClass
Execution halted
Warning in install.packages :
  installation of package ‘DierckxSpline’ had non-zero exit status

The downloaded source packages are in
    ‘/private/var/folders/99/kh3ryr751csc6rnw79nzj0k40000gn/T/RtmpS3HGiF/downloaded_packages’

到目前为止,我一无所知,当我使用Google时也无济于事。 RStudio似乎是Mac X的问题。 希望有人可以帮助,谢谢。

最终在这里得到了答案并解决了: makeCluster的rJava'class not found'错误 问题出在我的.Rprofile ,它具有行library(RJDBC)和行drv <- JDBC("com.sas.net.sharenet.ShareNetDriver", "/usr/local/sas/jdbc_driver/sas.intrnet.javatools.jar", identifier.quote="") 我不知道这里在那里。 我刚刚将其删除,现在问题已解决。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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