作為流行病與衛生統計學專業的我, 當然也在研究其中...
在R語言內, 處理流行病學資料分析的統計包有一些, 但以"epicalc"統計包最為出名和內容齊全... 但在安裝時, 會出現: 已過期了---的訊息...
install.packages("epicalc")
Warning in install.packages : package 'epicalc' is not available (for R version 3.3.2)
在網上找了一下它的解決方法如下:
# Download package tarball from CRAN archive
url <- "http://cran.r-project.org/src/contrib/Archive/epicalc/epicalc_2.15.1.0.tar.gz"
pkgFile <- "epicalc_2.15.1.0.tar.gz"
download.file(url = url, destfile = pkgFile)
# Install package
install.packages(pkgs=pkgFile, type="source", repos=NULL)
* installing *source* package ‘epicalc’ ...
** package ‘epicalc’ successfully unpacked and MD5 sums checked
** R
** data
** demo
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (epicalc)
# Delete package tarball
unlink(pkgFile)
經過運行後, 可以正確地安裝epicalc了! ( 謝謝偉大的互聯網!)
沒有留言:
張貼留言