我正嘗試在我通過Web瀏覽器訪問的RStudio服務器上安裝e1071軟件包。以下是錯誤我得到:無法在Ubuntu上的RStudio服務器上安裝e1071
> install.packages("e1071")
Installing package(s) into ‘/home/mc/R/library’
(as ‘lib’ is unspecified)
trying URL 'http://cran.nexr.com/src/contrib/e1071_1.6-1.tar.gz'
Content type 'application/x-gzip' length 258910 bytes (252 Kb)
opened URL
==================================================
downloaded 252 Kb
The downloaded source packages are in
‘/tmp/Rtmp3a2DZB/downloaded_packages’
Error in system(paste(which, i), intern = TRUE, ignore.stderr = TRUE) :
cannot popen '/usr/bin/which pdflatex 2>/dev/null', probable reason 'Cannot allocate memory'
有時候,當我嘗試這一點,我沒有得到錯誤信息,但e1071包仍然沒有出現在包列表。
這裏是我的sessionInfo()
> sessionInfo()
R version 2.15.2 (2012-10-26)
Platform: x86_64-pc-linux-gnu (64-bit)
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=C
[4] LC_COLLATE=C LC_MONETARY=C LC_MESSAGES=C
[7] LC_PAPER=C LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=C LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] caret_5.15-045 cluster_1.14.3 reshape_0.8.4 plyr_1.8
[5] lattice_0.20-10 doMC_1.2.5 multicore_0.1-7 iterators_1.0.6
[9] foreach_1.4.0
loaded via a namespace (and not attached):
[1] codetools_0.2-8 grid_2.15.2 tools_2.15.2
有人可以幫忙嗎?謝謝。
重新啓動RStudio服務器,它可能是which'未安裝Linux的工具'。 –
不太確定,因爲「未安裝」會導致「找不到」作爲錯誤。 –