I was using mlr3 library from few weeks and now suddenly I am getting the following error:
Loading required package: mlr3
Error: package or namespace load failed for ‘mlr3’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
namespace ‘data.table’ 1.13.0 is already loaded, but >= 1.13.6 is required
Error: package ‘mlr3’ could not be loaded
I dont know how to update the package because the version 1.13.6 is not available in the Tools menu of R studio.
Restart your R session and then update data.table via install.packages("data.table").
Related
Yesterday I loaded tidyverse` as usual, but not I get the following error:
library(tidyverse)
Warning: package ‘tidyverse’ was built under R version 4.1.3Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): namespace ‘cli’ 3.1.0 is already loaded, but >= 3.4.1 is required
I already updated my packages.
Also, I have tried the following:
remove.packages("tidyverse")
install.packages("tidyverse")
remove.packages("rlang")
install.packages("rlang")
But again, when I load library(tidverse) I get the same error.
At the end, I updated my R version (to 4.2.2) and changed it to RStudio manually: Tools -> Global Options -> R version.
I would like to install more packages in RStudio and got a error message. Before, I worked with gglot2 and it worked well. When I tried to install other packages, more errors occure.
I loaded library DBI, vctrs without a problem, then I'm trying:
> library(ggplot2)
Error: package or namespace load failed for ‘ggplot2’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
namespace ‘vctrs’ 0.4.0 is already loaded, but >= 0.5.0 is required
> library(tidyverse)
Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
namespace ‘vctrs’ 0.4.0 is already loaded, but >= 0.4.1 is required
> library(lubridate)
> library(dbplyr)
Error: package or namespace load failed for ‘dbplyr’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
namespace ‘cli’ 3.2.0 is already loaded, but >= 3.3.0 is required
I checked all updates, restart R Studio, tried to update vctrs, but anything works. Could anyone help me?
It appears you have old versions of packages installed and loaded.
For example, you have a version of vctrs installed but ggplot2 needs a more recent version. This is especially a problem if you have already called library(vctrs) because the active version of the package is already determined.
The simplest solution is to update your packages. Here are many questions on Stackoverflow about how to do that. Try some of the following links:
Update R using RStudio
How to update packages
Update packages asks for every package
I'm trying to install the some packages in Azure ML studio R notebook.
Upon typing library(dplyr) I get the error that
package or namespace load failed for ‘dbplyr’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
namespace ‘rlang’ 0.4.11 is already loaded, but >= 1.0.0 is required
Can anyone suggest on how to install and load packages here just like RStudio
Screenshot of error
I have problems of loading this package called equatiomatic
I have successfully installed, but when I library it using library(equatiomatic),the following error message appears.
Error: package or namespace load failed for ‘equatiomatic’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): namespace ‘htmltools’ 0.5.1.1 is already loaded, but >= 0.5.2 is required
Can any one tell me how to fix it?
One solution is to update htmltools then load equatiomatic, e.g.
# restart or start a new session to 'unload' all libraries
# install htmltools
install.packages("htmltools")
# load equatiomatic
library(equatiomatic)
I am having trouble to load library "dplyr" and "tidyverse". I used to load them very often since today that I am getting the following error
Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
namespace ‘rlang’ 0.4.5 is already loaded, but >= 0.4.6 is required
I tried to update my RStudio and update all packages rom tools option in RStudio. I also reinstall "rlang" package. But I am still unable to load dplyr and tidyverse. I am using R version 3.5.2 and RStudio Version 1.3.1073
I followed some threads online but none worked. Do you have any idea how I can fix the issue?