Unable to installing pbkrtest package in R studio

Hi, I am new to R. I was trying to install "car" package on my Windows 8 but getting error. Please help me

install.packages("car")
Installing package into ‘C:/Users/L/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
Warning in install.packages :
  dependency ‘pbkrtest’ is not available

  There is a binary version available but the source version is later:
    binary source needs_compilation
car  2.1-4  3.0-0             FALSE

installing the source package ‘car’

trying URL 'https://cran.rstudio.com/src/contrib/car_3.0-0.tar.gz'
Content type 'application/x-gzip' length 443887 bytes (433 KB)
downloaded 433 KB

ERROR: dependency 'pbkrtest' is not available for package 'car'
* removing 'C:/Users/L/Documents/R/win-library/3.2/car'
Warning in install.packages :
  running command 'cmd /C C:/PROGRA~1/R/R-32~1.0/bin/x64/R CMD INSTALL -l "C:\Users\L\Documents\R\win-library\3.2" C:\Users\L\AppData\Local\Temp\RtmpaIzVYH/downloaded_packages/car_3.0-0.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘car’ had non-zero exit status

The downloaded source packages are in
	‘C:\Users\L\AppData\Local\Temp\RtmpaIzVYH\downloaded_packages’

Then, when I tried to installing "pbkrtest" package there is getting error too.

install.packages("pbkrtest")
Installing package into ‘C:/Users/L/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
Warning in install.packages :
  package ‘pbkrtest’ is not available (for Oracle Distribution of R version 3.2.0)
1 Like

It looks like pbkrtest is not available for R 3.2.0 - it appears to require at least R 3.2.3. See here: https://cran.r-project.org/web/packages/pbkrtest/index.html

You may need to upgrade to a later version of R in order to use that particular package.

2 Likes