I am having trouble updating from dplyr version 0.8.5 to 1.0.2 on Ubuntu 16.04 LTS. The error that I get is hard for me to understand.
I update using the following command: update.packages(ask=FALSE,dependencies=TRUE), I am running R with root privileges.
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : there is no package called ‘data_frame’ ERROR: lazy loading failed for package ‘dplyr’
What does there is no package called ‘data_frame’ mean? I thought data_frame would be available since it is in the base package.
It turns out upgrading my base R version fixed the issue. I went from 3.2.3 to 3.6.3 and then I could get dplyr 1.0.2.
Related
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?
My Rstudio version is this
Running on R version 3.5.2 (64 bits). I need to use caTool for data analysis but I was unable to find and install the package.
Also, when I tried to install HH package, the console just writes
Error: package ‘latticeExtra’ required by ‘HH’ could not be found In addition: Warning message:package ‘HH’ was built under R version 3.5.3
Last one,
When I attempt to use DMwR package
Error: package or namespace load failed for ‘DMwR’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):there is no package called ‘caTools’In addition: Warning message:package ‘DMwR’ was built under R version 3.5.3
Does this mean caTool is like a dependency for DmwR? How do I fix these issues? I was told to downgrade my Rstudio Version but to which version of Rstudio?
I have been trying to install ggplot2 but get the following error:
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace ‘scales’ 0.4.0 is being loaded, but >= 0.4.1 is required
ERROR: lazy loading failed for package ‘ggplot2’
* removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/ggplot2’
Just so you know, I am using RStudio 1.0.136 and R 3.2.1 GUI Snow Leopard. Could it be a problem of compatibility with the old version of R that I am using? Does anyone know what the above means?
install.packages("scales")
install.packages("ggplot2")
will do the trick. Also try to keep your packages in R updated in the future, since R packages usually depend on the latest versions of other packages.
if you are on windows try :
install.packages("ggplot2", type="win.binary",dependencies = TRUE) else check the documentation in type and binary packages sections for the correct type according to your os :
https://www.rdocumentation.org/packages/utils/versions/3.5.2/topics/install.packages
I have uninstalled R and Rstudio. When I originally downloaded Rstudio the package was not listed in the packages section, so I downloaded and imported the zip file. There is no current version of R that is 3.3.0 that I can find-- my R version is 3.2.2. I have tried to install using the RGui as admin and I get the same error.
This is my error:
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck =
vI[[i]]) : there is no package called ‘gtable’ In addition: Warning
message: package ‘ggplot2’ was built under R version 3.3.0 Error:
package or namespace load failed for ‘ggplot2’
You are somehow executing R 3.3.0. No matter, though, you can simply invoke install.packages('ggplot2', repos='http://cran.rstudio.com', type='source') should sort you. If not, post a comment.
I accidentally deleted my old version of ggplot2, so I downloaded the new version, and when I use
library(ggplot2)
I get the following error:
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
there is no package called ‘colorspace’
Error: package or namespace load failed for ‘ggplot2’
Does anyone know how to fix this? I tried reinstalling the older version of ggplot2 in both R 3.0.2 and R 3.0.1 (where it previously worked!) and it says the package is not available.
If anyone has a solution to how to fix the loading of the new version or how to get the old version work again, I would be indebted - I really need to plot something with ggplot!!
Cheers
Install the missing colorspace package by executing the following line in R:
install.packages("colorspace")
I fixed it by installing Tk and Tktable in my linux machine.