最近刚开始自学R语言,电脑是Surface Pro6,下载R语言包的时候一直不成功,跳出如下提示。
install.packages("fs")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Warning in install.packages :
'lib = "C:/Program Files/R/R-3.6.1/library"' is not writable
Warning in install.packages :
cannot create dir 'C:\Users\Wanda\OneDrive\??', reason 'Invalid argument'
Error in install.packages : unable to create ‘C:/Users/Wanda/OneDrive/??/R/win-library/3.6’
老师说是①路径有中文无法读取;②C盘锁起来了,没有权限。
我的疑问是
①后来把所有名称都改成英文,除了onedrive上的文档之类的不让我改,Rstudio中还是显示有中文。
②surface pro没有硬盘,只有c盘,所有东西都只能下在c盘里,所以没有权限,可是打开权限又不安全,我应该怎么办呢?
希望大家有时间能解答我的困惑,谢谢大家!