2012-10-18 68 views
0

我嘗試安裝texreg包R和正在以下錯誤:instaling texreg包中的R

> install.packages("texreg", "~/R/x86_64-unknown-linux-gnu-library/2.13/") 
--- Please select a CRAN mirror for use in this session --- 
Loading Tcl/Tk interface ... done 
trying URL 'http://cran.wustl.edu/src/contrib/texreg_1.06.tar.gz' 
Content type 'application/x-gzip' length 204278 bytes (199 Kb) 
opened URL 
================================================== 
downloaded 199 Kb 
installing *source* package ‘texreg’ ... 
** R 
** inst 
** preparing package for lazy loading 
Error in is(signature, "list") : could not find function "className" 
Error : unable to load R code in package 'texreg' 
ERROR: lazy loading failed for package ‘texreg’ 

這是我的R安裝過程中有問題嗎?我正在運行2.13,很不幸無法升級,因爲我在羣集中。

+0

這是在安裝過程中嗎?當你試圖使用某個功能?請提供更多信息,因爲您的問題目前在細節部門非常缺乏。 – Dason

+0

發佈了上面的所有細節 – Alex

回答

4

className是在R-2.14.0中引入的。我建議嘗試一個previous versions of texreg

> db <- news() 
> news(grepl("className",Text), db=db) 
Changes in version 2.14.0: 

BUG FIXES 

    o In principle, S4 classes from different packages could have the same 
     name. This has not previously worked. Changes have now been 
     installed that should allow such classes and permit methods to use 
     them. New functions className() and multipleClasses() are related 
     tools for programming.