18

I want to install the package "car" but it depends of a package "pbkrtest" I can't install :

ERROR: dependency ‘pbkrtest’ is not available for package ‘car’ Warning in install.packages : installation of package ‘car’ had non-zero exit status install.packages("pbkrtest") Installing package into ‘/home/d9999/R/x86_64-redhat-linux-gnu-library/3.2’ (as ‘lib’ is unspecified) Warning in install.packages : ****package **‘pbkrtest’ is not available (for R version 3.2.2)******

Do you have an idea ?

R Studio version : 0.99.489 R version 3.2.2 (2015-08-14) Platform: x86_64-redhat-linux-gnu (64-bit)

Cindy Meister
  • 25,071
  • 21
  • 34
  • 43
tal29
  • 189
  • 1
  • 1
  • 3

1 Answers1

30

According to the CRAN page, the current version of the package pbkrtest (v0.4.6) requires R v. 3.2.3 or higher.

Depends: R (≥ 3.2.3)

Since car depends on pbkrtest, you need to upgrade your R version to the latest version in order to use this package.

Alternatively, you can install an older version of pbkrtest (0.4.4 or higher), which you can find here. Version 0.4.5 of pbkrtest could be a good choice if you don't want to or cannot upgrade R, because this version would be sufficient to install the latest version of car, and it could operate on your current R version since it requires only R v3.0.2 or higher.

RHertel
  • 23,412
  • 5
  • 38
  • 64
  • 20
    `packageurl <- "https://cran.r-project.org/src/contrib/Archive/pbkrtest/pbkrtest_0.4-4.tar.gz" install.packages(packageurl, repos=NULL, type="source")` Maybe you also need to update or reinstall package `lm4` – Enrique Pérez Herrero Feb 27 '16 at 12:44
  • 8
    Just an FYI for future readers, to get @EnriquePérezHerrero 's installation code above to work, I had to install `lme4` first; `install.packages("lme4")`, then run Enrique's code to install `pbkrtest`, and finally get to installing `car`. – coip Mar 09 '16 at 17:45
  • 2
    Thanks @EnriquePérezHerrero I also had to add argument `method="curl"` for this trick to work – oski86 Apr 25 '16 at 13:27
  • 1
    Final note: @EnriquePérezHerrero's answer is two lines, not one. – Justapigeon Mar 03 '20 at 03:36