我正在一个Java项目中运行R中的脚本并将结果返回到Java。我正在使用具有以下Maven依赖项的Renjin解释器:
```
<dependency>
<groupId>org.rosuda.REngine</groupId>
<artifactId>REngine</artifactId>
<version>2.1.0</version>
</dependency>
<dependency>
<groupId>org.renjin</groupId>
<artifactId>renjin-tests</artifactId>
<version>0.8.2242</version>
</dependency>
<dependency>
<groupId>org.renjin.cran</groupId>
<artifactId>plm</artifactId>
<version>1.4-0-b39</version>
</dependency>
```
```
<repository>
<id>bedatadriven</id>
<name>bedatadriven public repo</name>
<url>https://nexus.bedatadriven.com/content/groups/public/</url>
</repository>
```
对于具有“ lm”功能的脚本,该过程可以正常工作,但是在使用“ plm”时会引发错误(在eclipse控制台中)。 错误是:
```
Error : no internal function "cov"
Loading required package: Formula
Loading required package: stats
Loading required package: stats
[1] "Error : no internal function \"cov\"\n"
attr(,"class")
[1] "try-error"
attr(,"condition")
$message
[1] "no internal function \"cov\""
attr(,"class")
[1] "simpleError" "error" "condition"
```
对此有任何帮助,深表感谢!
谢谢!