Error: package or namespace load failed for ‘tmap’ - r

I am getting the error below when I am trying to run my shiny app which used to work properly; I did not get this error using the old version of my R/Rstudio. Currently, I am using Version 1.1.463 of Rstudio, and R version 4.0.3.
Thanks,
Nader
Error: package or namespace load failed for ‘tmap’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘raster’

The problem was with installing the ratser. When the question below prompted during the installation, I answered no instead of yes, and this solved the issue. Thanks.
Do you want to install from sources the package which needs compilation? (Yes/no/cancel)

Related

can't load package kknn in r studio

looks like the package has been successfully installed, however, the below message keeps appearing:
Error: package or namespace load failed for ‘kknn’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): there is no package called ‘lattice’
The kknn package was successfully installed before today. But I can't knit the document to pdf, so I installed a package called latexpdf. After that, the whole RStudio just doesn't function well. I don't know what happened... tried to re-install but doesn't help.
Does anyone know what should I do with this? thank you!
Thanks for the modification!
I installed Lattice package and the problem solved...what a silly question...

Is there a way to install tidymodels in R Version 3.6.1?

I'm also currently running an older version of Rstudio (Version 1.1.463) as my mac is running El Capitan (not enough memory to update). When trying to install and run 'tidymodels' I receive:
Error: package or namespace load failed for ‘tidymodels’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): there is no package called ‘rstanarm’
I have then attempted to install 'rstanarm' and receive:
Package which is only available in source form, and may need compilation of
C/C++/Fortran: ‘rstanarm’
Do you want to attempt to install these from sources? (Yes/no/cancel)
Following any of these options is unsuccessful. Is it possible to use 'tidymodels' given my situation?

Trouble Installing and Calling R Package

I am trying to install the R package "rattle".
I do so by simply typing:
install.packages("rattle")
...upon which a lot of good installin' seems to take place. But then when I call the package
library(rattle)
I get the error message
Error: package or namespace load failed for ‘rattle’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘stringi’
All of the research I've done online suggests some form of
install.packages("rattle", insert_something_here)
but I've had no luck with such methods.
Any ideas on what I'm missing?
Ok, so the entire issue seemed to revolve around the stringi package.
I first installed the latest Rtools package from
https://cran.r-project.org/bin/windows/Rtools/
and then I was able to successfully install stringi manually
install.packages("stringi")
and then I could call rattle no problem.

Error in installing packages in R

I tried installing rtweet() in R but it shows the following error:
Error: package or namespace load failed for ‘rtweet’ in
loadNamespace(j <- imp[[1L]], c(lib.loc, .libPaths()), versionCheck =
vI[[j]]): there is no package called ‘Rcpp’
As Russ said, you should try to install Rcpp before:
install.packages("Rcpp")
Or you could use the line:
install.packages("rtweet", dependencies = TRUE)
It will install rtweet and all dependencies like Rcpp
You could also, try to install it directly from URL:
install.packages("https://cran.r-project.org/web/packages/rtweet/index.html")
And if still fails, go directly to issues from rtweet (https://github.com/mkearney/rtweet/issues) ;-)
And also be careful, because R packages are case-sensitive!
Have a nice day!

Installing package ez on mac error

Just installed R and RStudio on macbook pro running Yosemite. When I try to install the ez package, I get a number of error messages, whether I use the R package manager or the install.packages command.
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called 'quantreg'
Error: package or namespace load failed for 'ez'
I have no idea what to do.
Solved by using the package installer and installing quantreg from there. Apparently install.packages had trouble doing that.

Resources