报错记录:
Warning in install.packages :
package ‘epicalc’ is not available for this version of R
A version of this package for your version of R might be available
elsewhere, see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
报错原因:
Epicalc
已从 CRAN 存储库中删除,并且似乎被替换为 epiDisplay
.
‘epicalc’ has disappeared from CRAN. It has been archived by R-core team based on my request. The reason is that CRAN has set up a policy not to allow any package to do anything on .GlobalEnv while epicalc does that extensively. 1
关于 epicalc 和 epiDisplay:
For those who are familiar with epicalc, without these database functions, you need to get back to usual plain R functions. That will slow you down substantially, especially during the data cleaning and manipulation. I recommend that you should install epicalc from our website (as shown above) and don’t borther about ‘epiDisplay’ For R users who have never used epicalc and do not want to learn epicalc database functions, ‘epiDisplay’ is straightforward and should still be very useful in data exploration and result display.
Epicalc安装方法:
Epicalc
程序包在R中的安装方法:
# Download package tarball from CRAN archive and install Epicalc
download.file(url = "http://cran.r-project.org/src/contrib/Archive/epicalc/epicalc_2.15.1.0.tar.gz", destfile = "epicalc_2.15.1.0.tar.gz")
install.packages(pkgs="epicalc_2.15.1.0.tar.gz", type="source", repos=NULL)
unlink("epicalc_2.15.1.0.tar.gz")
http://stackoverflow.com/questions/32316360/why-was-package-epicalc-removed-from-cran ↩︎