问题描述
在将R更新到4.0.3并将RStudio更新到最新版本之后,我对以下问题中描述的RStudio和RTools的协整存在问题(在R为3.6和RTools 35之前,一切正常): https://community.rstudio.com/t/problems-with-r-4-0-0-windows-error-package-or-namespace-load-failed-for-stats-in-indl-x-as-logical-local-as-logical-now/62958/6
https://community.rstudio.com/t/rtools-not-found-after-r-4-0-0-installation/63356/3
我发现我应该为用户设置一些环境变量。但是,尽管新的RTolls路径应该具有路径public class Student {
Student(String fullname,int group,int marks[]){
this.fullname = fullname;
this.group = group;
this.marks = marks;
}//constructor
void display(){
System.out.println("Named: " + fullname + " | Group: " + group + " | Marks: " + Arrays.toString(marks));
}
int group;
int marks[];
String fullname;//class fields
public static void main(String[] args){
Student Matthew = new Student("Whatever 1",14,new int[]{9,6,8,4,5});
Student John = new Student("Whatever 2",13,new int[]{4,9,5,10,7});
Student Max = new Student("Whatever 3",new int[]{7,9});//objects
Matthew.display();
John.display();
Max.display();
}
}
(对于较旧的Rtools版本是C:\rtools40\usr\bin
,但我仍然不知道该怎么做。您能帮忙吗?
此外,我执行了这些步骤,但是在下载软件包时出现了错误
C:\RTools\bin
然后我尝试跟随并出现了不同的错误
> Sys.setenv(PATH = paste("C:/rtools40/usr/bin",Sys.getenv("PATH"),sep=";"))
> install_github("brettjbush/R-Websockets")
Downloading GitHub repo brettjbush/R-Websockets@HEAD
√ checking for file 'C:\Users\NAME\AppData\Local\Temp\RtmpSMB4KM\remotes2bcc582622c6\brettjbush-R-Websockets-fc7ee9c/DESCRIPTION' (598ms)
- preparing 'websockets':
√ checking DESCRIPTION Meta-information ...
- cleaning src
Warning in system2(command,args,stdout = NULL,stderr = NULL,...) :
'CreateProcess' Failed to run 'C:\rtools40\usr\bin\make.exe -f "C:/PROGRA~1/R/R-40~1.3/share/make/clean.mk" -f Makevars.win clean'
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)