每当我开始R(从终端),我得到:
Error: object 'en' not found
这会导致各种问题,尤其是我无法安装软件包:
> install.packages("rmarkdown")
Installing package into ‘/home/eric/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
also installing the dependencies ‘backports’, ‘htmltools’, ‘base64enc’, ‘rprojroot’
trying URL 'https://ftp.cixug.es/CRAN/src/contrib/backports_1.1.2.tar.gz'
Content type 'application/x-gzip' length 10900 bytes (10 KB)
==================================================
downloaded 10 KB
trying URL 'https://ftp.cixug.es/CRAN/src/contrib/htmltools_0.3.6.tar.gz'
Content type 'application/x-gzip' length 45408 bytes (44 KB)
==================================================
downloaded 44 KB
trying URL 'https://ftp.cixug.es/CRAN/src/contrib/base64enc_0.1-3.tar.gz'
Content type 'application/x-gzip' length 7833 bytes
==================================================
downloaded 7833 bytes
trying URL 'https://ftp.cixug.es/CRAN/src/contrib/rprojroot_1.3-2.tar.gz'
Content type 'application/x-gzip' length 50414 bytes (49 KB)
==================================================
downloaded 49 KB
trying URL 'https://ftp.cixug.es/CRAN/src/contrib/rmarkdown_1.8.tar.gz'
Content type 'application/x-gzip' length 2093181 bytes (2.0 MB)
==================================================
downloaded 2.0 MB
Error: object 'en' not found
Execution halted
Error: object 'en' not found
Execution halted
Error: object 'en' not found
Execution halted
Error: object 'en' not found
Execution halted
Error: object 'en' not found
Execution halted
The downloaded source packages are in
‘/tmp/RtmpjxEc33/downloaded_packages’
Warning messages:
1: In install.packages("rmarkdown") :
installation of package ‘backports’ had non-zero exit status
2: In install.packages("rmarkdown") :
installation of package ‘htmltools’ had non-zero exit status
3: In install.packages("rmarkdown") :
installation of package ‘base64enc’ had non-zero exit status
4: In install.packages("rmarkdown") :
installation of package ‘rprojroot’ had non-zero exit status
5: In install.packages("rmarkdown") :
installation of package ‘rmarkdown’ had non-zero exit status
编辑:我最初认为这可能是与语言环境相关的问题,但根据下面的评论,我查看了Rprofile.site和Renviron.site文件。在
错误:未找到对象'en'
是由插入Rprofile.site文件的“language = en”引起的。它应该在Renviron.site文件中。另请参阅this post about locale issues in the console。
答案 0 :(得分:0)
感谢评论,很明显
错误:对象' en'找不到
由" language = en"引起而是插入到Rprofile.site文件而不是Renviron.site文件中。另请参阅this post about locale issues in the console。