Error: package or namespace load failed for ‘devtools’ in
loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck =
vI[[j]]): there is no package called ‘sessioninfo’
I have already installed the package "sessioninfo" and did the sessioninfo(), but it is still not working. I have also unistalled and reinstalled the R and Rstudio
This is the error when i install devtools:
* installing *source* package 'sessioninfo' ...
** package 'sessioninfo' successfully unpacked and MD5 sums checked
** using staged installation
** R
** byte-compile and prepare package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace 'cli' 3.0.1 is being loaded, but >= 3.1.0 is required
Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace
Execução interrompida
ERROR: lazy loading failed for package 'sessioninfo'
* removing 'C:/Users/myspace/OneDrive/Documentos/R/win-library/4.1/sessioninfo'
Warning in install.packages :
installation of package ‘sessioninfo’ had non-zero exit status
Related
I need to install Devtools so i can download the 0.5.4 htmltools package from github, almost every package i try to install gives an error stating that the htmltools version i have is 0.5.2 but the package requires the 0.5.4 version, which i think is the github developers version, but i cant install devtools because it states this error message requiring for htmltools 0.5.4:
* installing *source* package 'bslib' ...
** package 'bslib' successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace 'htmltools' 0.5.2 is being loaded, but >= 0.5.4 is required
Calls: <Anonymous> ... withCallingHandlers -> loadNamespace -> namespaceImport -> loadNamespace
Execução interrompida
ERROR: lazy loading failed for package 'bslib'
* removing 'C:/Users/Rafael-PC/Documents/R/win-library/4.0/bslib'
Warning in install.packages :
installation of package ‘bslib’ had non-zero exit status
* installing *source* package 'callr' ...
** package 'callr' successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace 'processx' 3.5.3 is being loaded, but >= 3.6.1 is required
Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace
Execução interrompida
ERROR: lazy loading failed for package 'callr'
* removing 'C:/Users/Rafael-PC/Documents/R/win-library/4.0/callr'
* restoring previous 'C:/Users/Rafael-PC/Documents/R/win-library/4.0/callr'
Warning in install.packages :
installation of package ‘callr’ had non-zero exit status
* installing *source* package 'lifecycle' ...
** package 'lifecycle' successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace 'rlang' 1.0.2 is being loaded, but >= 1.0.6 is required
Calls: <Anonymous> ... withCallingHandlers -> loadNamespace -> namespaceImport -> loadNamespace
Execução interrompida
ERROR: lazy loading failed for package 'lifecycle'
* removing 'C:/Users/Rafael-PC/Documents/R/win-library/4.0/lifecycle'
* restoring previous 'C:/Users/Rafael-PC/Documents/R/win-library/4.0/lifecycle'
Warning in install.packages :
installation of package ‘lifecycle’ had non-zero exit status
* installing *source* package 'pkgload' ...
** package 'pkgload' successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace 'rlang' 1.0.2 is being loaded, but >= 1.0.3 is required
Calls: <Anonymous> ... withCallingHandlers -> loadNamespace -> namespaceImport -> loadNamespace
Execução interrompida
ERROR: lazy loading failed for package 'pkgload'
* removing 'C:/Users/Rafael-PC/Documents/R/win-library/4.0/pkgload'
Warning in install.packages :
installation of package ‘pkgload’ had non-zero exit status
* installing *source* package 'pkgbuild' ...
** package 'pkgbuild' successfully unpacked and MD5 sums checked
** using staged installation
** R
** byte-compile and prepare package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace 'cli' 3.2.0 is being loaded, but >= 3.4.0 is required
Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace
Execução interrompida
ERROR: lazy loading failed for package 'pkgbuild'
* removing 'C:/Users/Rafael-PC/Documents/R/win-library/4.0/pkgbuild'
Warning in install.packages :
installation of package ‘pkgbuild’ had non-zero exit status
ERROR: dependency 'bslib' is not available for package 'pkgdown'
* removing 'C:/Users/Rafael-PC/Documents/R/win-library/4.0/pkgdown'
Warning in install.packages :
installation of package ‘pkgdown’ had non-zero exit status
ERROR: dependencies 'pkgbuild', 'pkgdown', 'pkgload' are not available for package 'devtools'
* removing 'C:/Users/Rafael-PC/Documents/R/win-library/4.0/devtools'
Warning in install.packages :
installation of package ‘devtools’ had non-zero exit status
tried to install htmltools via CRAN but the error persisted.
If you are using jupyter notebook for R try to install the devtools package in anaconda command prompt. Try this code install.packages("devtools") in anaconda prompt sometimes installing packages directly in notebook won't work and also check you R version is supported for devtools
My tidyverse package suddenly disappeared from my Rstudio showing error:
> library(tidyverse)
Error in library(tidyverse) : there is no package called ‘tidyverse’
But I have been using it everyday! So I tried to install the package again. However, I received error and warning and couldn't install the package:
install.packages("tidyverse")
also installing the dependencies ‘lifecycle’, ‘tidyselect’, ‘rlang’, ‘cli’, ‘dplyr’, ‘vctrs’, ‘dbplyr’
There are binary versions available but the source versions are later:
binary source needs_compilation
lifecycle 1.0.1 1.0.3 FALSE
tidyselect 1.1.2 1.2.0 FALSE
rlang 1.0.2 1.0.6 TRUE
cli 3.2.0 3.4.1 TRUE
dplyr 1.0.8 1.0.10 TRUE
vctrs 0.4.0 0.5.0 TRUE
dbplyr 2.1.1 2.2.1 FALSE
tidyverse 1.3.1 1.3.2 FALSE
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace ‘rlang’ 1.0.2 is being loaded, but >= 1.0.6 is required
ERROR: lazy loading failed for package ‘lifecycle’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/lifecycle’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/lifecycle’
Warning in install.packages :
installation of package ‘lifecycle’ had non-zero exit status
* installing *source* package ‘tidyselect’ ...
** package ‘tidyselect’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace ‘rlang’ 1.0.2 is being loaded, but >= 1.0.4 is required
Calls: <Anonymous> ... withCallingHandlers -> loadNamespace -> namespaceImport -> loadNamespace
Execution halted
ERROR: lazy loading failed for package ‘tidyselect’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/tidyselect’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/tidyselect’
Warning in install.packages :
installation of package ‘tidyselect’ had non-zero exit status
* installing *source* package ‘dbplyr’ ...
** package ‘dbplyr’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error 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
Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace
Execution halted
ERROR: lazy loading failed for package ‘dbplyr’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/dbplyr’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/dbplyr’
Warning in install.packages :
installation of package ‘dbplyr’ had non-zero exit status
* installing *source* package ‘tidyverse’ ...
** package ‘tidyverse’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace ‘lifecycle’ 1.0.0 is being loaded, but >= 1.0.1 is required
Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace
Execution halted
ERROR: lazy loading failed for package ‘tidyverse’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/tidyverse’
Warning in install.packages :
installation of package ‘tidyverse’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/0s/n2561n1s57q5k3tzwf28mqhc0000gn/T/RtmpQrdwuG/downloaded_packages’
What is wrong? The codes below did not work:
(I found on stack overflow as someone said it might work. Not sure the meaning of it.)
sudo apt-get install -y libxml2-dev libcurl4-openssl-dev libssl-dev
It just shows 'Error: unexpected symbol in "sudo apt"'.
Unable to install 'tidyverse'
Want to know how to sort it out
im trying to install the rgoogleads but i get this error
* installing *source* package 'rgoogleads' ...
** package 'rgoogleads' successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace 'cli' 2.5.0 is being loaded, but >= 3.0.0 is required
Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace
Execution halted
ERROR: lazy loading failed for package 'rgoogleads'
* removing 'C:/Users/jj/Documents/R/win-library/3.6/rgoogleads'
Warning in install.packages :
installation of package ‘rgoogleads’ had non-zero exit status
What do I need to do to avoid this error?
I successfully installed the devtools package, but when I wanted to load the package, this error came up:
library(devtools)
Error: package or namespace load failed for ‘devtools’ in
loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck =
vI[[j]]): namespace ‘cli’ 3.0.1 is already loaded, but >= 3.1.0 is
required In addition: Warning message: package ‘devtools’ was built
under R version 4.1.2
I'm using a macbook and trying to download ggplot2 using
install.packages("ggplot2")
but the following error keep popping up
* installing *source* package ‘scales’ ...
** package ‘scales’ successfully unpacked and MD5 sums checked
** R
** byte-compile and prepare package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
there is no package called ‘colorspace’
ERROR: lazy loading failed for package ‘scales’
* removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/scales’
Warning in install.packages :
installation of package ‘scales’ had non-zero exit status
ERROR: dependency ‘scales’ is not available for package ‘ggplot2’
* removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/ggplot2’
Warning in install.packages :
installation of package ‘ggplot2’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/gr/_lps4tvd06gd53snb_q3kgn80000gn/T/Rtmp56qAqb/downloaded_packages’
Can anyone help me out with this?