Raster Package is not functioning

I have been trying to calculate NDVI in R which requires the installation of the Raster Package. I have successfully installed and checked the box for this Package but whenever I run the command library(raster), I receive the error message(shown below) in the console that there is no package called 'Rcpp'. What does this mean and how can i circumvent this challenge?

Error: package or namespace load failed for ‘raster’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called ‘Rcpp’

Sounds like you need to install the package Rcpp, which is a required dependency of the raster package. Try installing Rcpp:


After it is installed you should be able to use the raster package.


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