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?

library(raster)
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:

install.packages("Rcpp")

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

3 Likes

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