Error when loading package "tmap" in library - r

I want to use the function tm_shape, therefore I attempted to load tmap but here is the error when I load it in the library
Error: package or namespace load failed for ‘tmap’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called ‘terra’

Related

Why am I getting while loading' tidyverse' library?

I installed the 'tidyverse' package but when I tried to load the library, I keep getting this error message: "Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): there is no package called ‘colorspace’"
Please, help!
I tried to load the package, that worked but loading the library did not.

I am trying to do abstract screening by metagear package and giving error:

Error: package or namespace load failed for ‘metagear’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called ‘stringi’
It looks like you need to install the stringi package:
install.packages('stringi')

Error: package or namespace load failed for ‘rio’

I'm unable to load the rio package. I already have it installed.
library(rio)
Here's the full error below:
Error: package or namespace load failed for ‘rio’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): there is no package called ‘foreign’

Caret won't install/load properly

when i do
install.packages(“caret”)
it appears that the package is successfully installed (R response is posted at the bottom of this text). However, when I run library(caret), I get the following error messages:
library(caret)
Error: package or namespace load failed for ‘caret’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called ‘lava’

Error in loadNamespace, package not found

I started using R. When I try to load the package Rcmdr, this error appears
Loading required package: RcmdrMisc
Loading required package: car
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called ‘nloptr’
Error: package ‘car’ could not be loaded
Please help me , I need this program for a class in college.

Resources