当我尝试在 R 中安装软件包时,如果我.Rprofile
的已加载,安装几乎总是失败。但是,当我用标志加载 R 时--vanilla
,我可以毫无问题地安装包。这是有问题的 R 会话的输出。我认为困难与我在历史文件.First()
中的功能.Rprofile
或历史文件有关。我的 Rprofile 文件在这里。
$ install.packages("SuppDists")
Installing package into ‘/home/lmullen/R/x86_64-pc-linux-gnu-library/3.0’
(as ‘lib’ is unspecified)
trying URL 'http://cran.cnr.Berkeley.edu/src/contrib/SuppDists_1.1-9.tar.gz'
Content type 'application/x-gzip' length 140784 bytes (137 Kb)
opened URL
==================================================
downloaded 137 Kb
Loading required package: stats
Loading required package: sp
rgeos version: 0.2-19, (SVN revision 394)
GEOS runtime version: 3.3.3-CAPI-1.7.4
Polygon checking: TRUE
rgdal: version: 0.8-10, (SVN revision 478)
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 1.9.0, released 2011/12/29
Path to GDAL shared files: /usr/share/gdal/1.9
Loaded PROJ.4 runtime: Rel. 4.7.1, 23 September 2009, [PJ_VERSION: 470]
Path to PROJ.4 shared files: (autodetected)
Error in .External2(C_loadhistory, file) : no history mechanism available
Calls: .First -> <Anonymous>
Execution halted
The downloaded source packages are in
‘/tmp/RtmpX42EEZ/downloaded_packages’
Warning message:
In install.packages("SuppDists") :
installation of package ‘SuppDists’ had non-zero exit status
有谁知道问题是什么?