0

I am performing Barnard's exact test for 2X2 contingency table. I found https://cran.r-project.org/web/packages/Exact/Exact.pdf for doing Barnard's test in R. My R version is 3.2.2 . I am trying to install package Exact, but it seems the package is not available for R version 3.2.2 . Is it so? How do you implement Barnard's test in R ?

Edit:

install.packages("Exact")

It gives the following message

Warning: unable to access index for repository https://mirror.aarnet.edu.au/pub/CRAN/src/contrib Warning: unable to access index for repository https://mirror.aarnet.edu.au/pub/CRAN/bin/windows/contrib/3.2 Warning message: package ‘Exact’ is not available (for R version 3.2.2)

library(Exact)

Error in library(Exact) : there is no package called ‘Exact’

MrFlick
  • 195,160
  • 17
  • 277
  • 295
user81411
  • 437
  • 1
  • 7
  • 13
  • Can you post the code you used to install it? My guess is you had a typo. Also, why don't you update to the latest version? – CCD Sep 11 '17 at 15:02
  • This needs more info. On 3.3.2 I cannot reproduce that it cannot be installed and loaded. – Patrik_P Sep 11 '17 at 15:03
  • 3
    I don't see any R version dependency listed on the package's [CRAN page](https://cran.r-project.org/web/packages/Exact/index.html). That said, R 3.2.2 is more than 2 years old. You'll likely run into dependency issues with other packages as time goes on. If admin rights for installation / upgrade isn't an issue, maybe consider switching to a more recent version of R? – Z.Lin Sep 11 '17 at 15:06
  • What is this link in the warning message http://mirror.aarnet.edu.au/pub/CRAN/src/contrib/ ? – user81411 Sep 11 '17 at 15:14
  • 2
    Maybe there's a problem with the CRAN mirror you've selected. Choose a different CRAN mirror with `chooseCRANmirror()`. Selection "1" usually works just fine. After you change your mirror, try running `install.packages("Exact")` again. – MrFlick Sep 11 '17 at 15:18
  • @MrFlick It works. Thank you so much. By selection "1", did you mean `0-cloud[https]`? – user81411 Sep 11 '17 at 15:33
  • 1
    Yes. 0-Cloud. Not all mirrors keep older stuff around. – MrFlick Sep 11 '17 at 15:35

1 Answers1

1

Did you type the following exactly? (See what I did there)

install.packages("Exact")

CCD
  • 590
  • 3
  • 8