我基本上有两个问题。R包安装
如何找到正在运行的默认
Rprofile
?我还没有设置Rprofile
,所以我不确定它从哪里运行。我想安装几个软件包使用命令(在主终端做一个SUDO后)。
install.packages("RODBC","/home/rama/R/i486-pc-linux-gnu-library/2.9")
,我回来它说的错误:
ERROR: failed to lock directory ‘/home/rama/R/i486-pc-linux-gnu-library/2.9’ for modifying Try removing ‘/home/rama/R/i486-pc-linux-gnu-library/2.9/00LOCK’
The downloaded packages are in ‘/tmp/RtmpkzDMVU/downloaded_packages’ Warning message: In install.packages("RODBC", "/home/rama/R/i486-pc-linux-gnu-library/2.9") : installation of package 'RODBC' had non-zero exit status
我想你应该订阅R-SIG-debian的名单,并要求存在 - 这样的名单,如果专注于在Debian/Ubuntu的r用。 – 2009-08-30 14:50:19
Re 1)它们是相同的文件,只是软链接。试试'ls -l /etc/R/Rprofile.site /usr/lib/R/etc/Rprofile.site'。 Re 2)这是基本的dpkg东西 - 试试'dpkg -L r-cran-rodbc'Re 3)你误解了:$ HOME下面是你的,下面的/ usr是apt/dpkg。此外,还有易安装的BioConductor可安装版本。 – 2009-08-30 15:01:24
太棒了!这使得事情变得更加清晰!我尽快进入邮件列表! – Quantrix 2009-08-30 15:27:03