我目前正在尝试从GitHub上安装一些软件包,但我一直遇到这个致命错误。我认为这与文件目标有关,但我不确定。任何建议将不胜感激!
> devtools::install_github("hrbrmstr/albersusa")
Downloading GitHub repo hrbrmstr/albersusa@master
√ checking for file 'C:\Users\FirstName Surname\AppData\Local\Temp\RtmpeqCuBA\remotes51a46de62be1\hrbrmstr-albersusa-5b933bf/DESCRIPTION' (489ms)
- preparing 'albersusa':
√ checking DESCRIPTION meta-information ...
- checking for LF line-endings in source and make files and shell scripts
- checking for empty or unneeded directories
- building 'albersusa_0.3.1.tar.gz'
Installing package into ‘C:/Users/FirstName Surname/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
* installing *source* package 'albersusa' ...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Fatal error: cannot open file 'C:\Users\FirstName': No such file or directory
ERROR: lazy loading failed for package 'albersusa'
* removing 'C:/Users/FirstName Surname/Documents/R/win-library/3.6/albersusa'
Error in i.p(...) :
(converted from warning) installation of package ‘C:/Users/FirstName Surname/AppData/Local/Temp/RtmpeqCuBA/file51a45f6e3a8b/albersusa_0.3.1.tar.gz’ had non-zero exit status
应按说明将软件包安装到“ C:/ Users / Firstname Surname / Documents / R / win-library / 3.6”中,但是遇到以下错误则给出致命错误:“ C:\ Users \ FirstName'与此不同。
编辑:Windows 10,R-3.6.0,RStudio
谢谢!
答案 0 :(得分:0)
将r软件包升级到4.0.1版本可以解决此问题