我一直在爲我的計算機在家裏的一個模擬項目工作R包,我已經使用RStudio來構建併成功安裝它。然而另一臺機器在我有麻煩......如果我嘗試建立RStudio,這也將其安裝過一個二進制大學,我得到一個錯誤,如果我只是編譯源得到它的工作原理是.tar.gz ,但是當我來安裝時,我再次得到錯誤。下面是兩次出現錯誤的讀數。我認爲這是與庫,但爲什麼這將是不同的,以我家裏的電腦我不知道,我不是程序員,這臺機器上安裝完全相同的方式R和RTools和RStudio作爲我個人機。 - 我有管理員訪問了幾天。R自定義軟件包從文件錯誤安裝
install.packages("speEaR_1.0.tar.gz", repos=NULL, type="source")
Installing package(s) into ‘\\ueahome5/ressci17/yrq12edu/data/Documents/R/win-library/2.15’
(as ‘lib’ is unspecified)
* installing *source* package 'speEaR' ...
** R
** preparing package for lazy loading
** help
Warning: C:/Users/yrq12edu/AppData/Local/Temp/Rtmp84HJPx/R.INSTALL7e81a241d97/speEaR/man/makeSetMatrix.Rd:25: unknown macro '\begin'
Warning: C:/Users/yrq12edu/AppData/Local/Temp/Rtmp84HJPx/R.INSTALL7e81a241d97/speEaR/man/makeSetMatrix.Rd:26: unknown macro '\item'
Warning: C:/Users/yrq12edu/AppData/Local/Temp/Rtmp84HJPx/R.INSTALL7e81a241d97/speEaR/man/makeSetMatrix.Rd:30: unknown macro '\end'
*** installing help indices
** building package indices
** testing if installed package can be loaded
*** arch - i386
Warning in library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE) :
no library trees found in 'lib.loc'
Error: loading failed
Execution halted
*** arch - x64
Warning in library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE) :
no library trees found in 'lib.loc'
Error: loading failed
Execution halted
ERROR: loading failed for 'i386', 'x64'
* removing '\\ueahome5/ressci17/yrq12edu/data/Documents/R/win-library/2.15/speEaR'
Warning messages:
1: running command 'C:/PROGRA~1/R/R-215~1.2/bin/i386/R CMD INSTALL -l "\\ueahome5/ressci17/yrq12edu/data/Documents/R/win-library/2.15" "speEaR_1.0.tar.gz"' had status 1
2: In install.packages("speEaR_1.0.tar.gz", repos = NULL, type = "source") :
installation of package ‘speEaR_1.0.tar.gz’ had non-zero exit status
它被連接到一個網絡驅動器。謝謝!我會在早上第一時間嘗試解決方案! – Ward9250
我剛剛通過在R CMD BUILD INSTALL的-l選項下放置'\\ ueahome5/ressci17/yrq12edu/data/Documents/R/win-library/2.15 /'來嘗試這種方法,並且也使用'U:/ ressci17/yrq12edu /數據/文檔/ R /贏庫/ 2.15 /'。可悲的是我把它說,它無法cd到第二個,因爲它不存在,而第一個給了我一個問題,同以前的約lib.loc,也'\\ ueahome5/ressci17/yrq12edu /數據/文件/ R/win-library/2.15/00LOCK-speEaR/speEaR' – Ward9250
@Axolotl9250,我想首先你應該將U:/ ressci17/yrq12edu/data/Documents/R/win-library/2.15 /'複製到你的Windows資源管理器中,請確保您可以訪問該目錄。如果它有效,那麼也許你會嘗試'devtools'包。我編輯了答案舉個例子 – Zhenglei