Dependency Installation in R

Re: Problem using Levene’s Test in the “car” package

Nour Salam, MSc, Graduate research assistant, Division of Coastal Sciences

I had the package ‘car’ installed, but every time I tried running the Levene test, the error message was that I did not have one of the dependencies of ‘car’ installed. That dependency is called ‘Rcpp’. When I tried installing ‘Rcpp’ using install.packages(‘Rcpp’), the installation would run but I think that ‘Rcpp’ was not installed in the right directory with all the other packages.

The magic code that solved this:

install.packages(“Rcpp”, repos=c(““, ““))

The Levene test worked after that.