Cannot Run "car" Package in R 3.6.2

Hi, this is my first time posting on the forum. I am a student taking a class on R and I am having technical difficulties that no one seems to be able to reproduce or solve.
I need to install and load the "car" package

I use install.packages("car") and receive the following error:

install.packages("car")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/XXXXX/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/car_3.0-6.zip'
Content type 'application/zip' length 1563559 bytes (1.5 MB)
downloaded 1.5 MB

package ‘car’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
D:\TEMP\RtmpY5hlIe\downloaded_packages

I know the Rtools error isn't important, but it doesn't appear to be installing the package correctly.

Attempting to load the package with library(car) yields the following error:

library(car)
Loading required package: carData
Error: package or namespace load failed for ‘car’:
.onLoad failed in loadNamespace() for 'vctrs', details:
call: loadNamespace(name)
error: there is no package called ‘backports’

Does anyone have any idea what is causing this and how I can fix it? I've restarted R and my system several times and tried over the course of a couple of days to reinstall this package.

Any help is appreciated

Thanks!

You are missing a package dependency, try installing it first

install.packages("backports")

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.