2016-02-28 42 views
-1

install.packages("UsingR") Installing package into ‘C:/Users/akshay/Documents/R/win-library/3.2’ (as ‘lib’ is unspecified) trying URL ' https://cran.rstudio.com/bin/windows/contrib/3.2/UsingR_2.0-5.zip ' Content type 'application/zip' length 2076955 bytes (2.0 MB) downloaded 2.0 MBUsingR包中的R不正確加載

包「UsingR」成功解壓縮和MD5和檢查 進入這裏代碼

我安裝UsingR包,如上所示。 但是當我嘗試加載它時,我在最後一行出現錯誤。

> library(UsingR) 

加載所需包:MASS 加載所需的程序包:HistData 加載所需的程序包:Hmisc 加載所需的程序包:格 加載所需的程序包:生存 錯誤:包「配方」由「Hmisc」不能要求被發現

father.son數據集應該在這個包中。但我沒有得到它。

> data(father.son) 

警告消息: 在數據(father.son):數據集「father.son」未找到

是否有人可以指出錯誤。

+0

「錯誤:所要求的包 '公式' 'Hmisc'找不到「 –

+0

是的,這是錯誤。但是我應該使用UsingR軟件包 – mathkid

+1

來獲取father.son數據集。但是,當包由於錯誤而未加載時,爲什麼您希望能夠訪問UsingR軟件包中的數據集? –

回答

1

嘗試使用依賴

install.packages("UsingR", dependencies=TRUE) 
0

我有同樣的錯誤安裝包。我決定安裝Hmisc包問題:

install.packages("Hmisc") 

然後我重裝UsingR包

library(UsingR) 

那麼我可以用所有的數據

data(father.son)