I have the latest version of RStudio, and tried loading the tidyverse package which I have been using for a long time with no issues, but failed to load after I update my RStudio.
When I have tried to re-install the tidyverse package, this is what I get:
> install.packages("tidyverse")
Error in install.packages : Updating loaded packages
> install.packages("tidyverse")
Installing package into ‘C:/Users/Anri Sakakibara/OneDrive/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
also installing the dependencies ‘cli’, ‘dbplyr’
There are binary versions available but the source versions are later:
binary source needs_compilation
cli 3.2.0 3.4.0 TRUE
dbplyr 2.1.1 2.2.1 FALSE
tidyverse 1.3.1 1.3.2 FALSE
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/cli_3.2.0.zip'
Content type 'application/zip' length 1256176 bytes (1.2 MB)
downloaded 1.2 MB
package ‘cli’ successfully unpacked and MD5 sums checked
Warning in install.packages :
cannot remove prior installation of package ‘cli’
Warning in install.packages :
problem copying C:\Users\Anri Sakakibara\OneDrive\Documents\R\win-library\4.0\00LOCK\cli\libs\x64\cli.dll to C:\Users\Anri Sakakibara\OneDrive\Documents\R\win-library\4.0\cli\libs\x64\cli.dll: Permission denied
Warning in install.packages :
restored ‘cli’
The downloaded binary packages are in
C:\Users\Anri Sakakibara\AppData\Local\Temp\RtmpgrhEBf\downloaded_packages
installing the source packages ‘dbplyr’, ‘tidyverse’
trying URL 'https://cran.rstudio.com/src/contrib/dbplyr_2.2.1.tar.gz'
Content type 'application/x-gzip' length 670569 bytes (654 KB)
downloaded 654 KB
trying URL 'https://cran.rstudio.com/src/contrib/tidyverse_1.3.2.tar.gz'
Content type 'application/x-gzip' length 702514 bytes (686 KB)
downloaded 686 KB
* 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.1.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 'C:/Users/Anri Sakakibara/OneDrive/Documents/R/win-library/4.0/dbplyr'
Warning in install.packages :
installation of package ‘dbplyr’ had non-zero exit status
ERROR: dependency 'dbplyr' is not available for package 'tidyverse'
* removing 'C:/Users/Anri Sakakibara/OneDrive/Documents/R/win-library/4.0/tidyverse'
Warning in install.packages :
installation of package ‘tidyverse’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\Anri Sakakibara\AppData\Local\Temp\RtmpgrhEBf\downloaded_packages’
> install.packages("tidyverse")
Error in install.packages : Updating loaded packages
Restarting R session...
> install.packages("tidyverse")
Error in install.packages : Updating loaded packages
> install.packages("tidyverse")
Installing package into ‘C:/Users/Anri Sakakibara/OneDrive/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
also installing the dependencies ‘cli’, ‘dbplyr’
There are binary versions available but the source versions are later:
binary source needs_compilation
cli 3.2.0 3.4.0 TRUE
dbplyr 2.1.1 2.2.1 FALSE
tidyverse 1.3.1 1.3.2 FALSE
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/cli_3.2.0.zip'
Content type 'application/zip' length 1256176 bytes (1.2 MB)
downloaded 1.2 MB
package ‘cli’ successfully unpacked and MD5 sums checked
Warning in install.packages :
cannot remove prior installation of package ‘cli’
Warning in install.packages :
problem copying C:\Users\Anri Sakakibara\OneDrive\Documents\R\win-library\4.0\00LOCK\cli\libs\x64\cli.dll to C:\Users\Anri Sakakibara\OneDrive\Documents\R\win-library\4.0\cli\libs\x64\cli.dll: Permission denied
Warning in install.packages :
restored ‘cli’
The downloaded binary packages are in
C:\Users\Anri Sakakibara\AppData\Local\Temp\RtmpYTxESW\downloaded_packages
installing the source packages ‘dbplyr’, ‘tidyverse’
trying URL 'https://cran.rstudio.com/src/contrib/dbplyr_2.2.1.tar.gz'
Content type 'application/x-gzip' length 670569 bytes (654 KB)
downloaded 654 KB
trying URL 'https://cran.rstudio.com/src/contrib/tidyverse_1.3.2.tar.gz'
Content type 'application/x-gzip' length 702514 bytes (686 KB)
downloaded 686 KB
* 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.1.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 'C:/Users/Anri Sakakibara/OneDrive/Documents/R/win-library/4.0/dbplyr'
Warning in install.packages :
installation of package ‘dbplyr’ had non-zero exit status
ERROR: dependency 'dbplyr' is not available for package 'tidyverse'
* removing 'C:/Users/Anri Sakakibara/OneDrive/Documents/R/win-library/4.0/tidyverse'
Warning in install.packages :
installation of package ‘tidyverse’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\Anri Sakakibara\AppData\Local\Temp\RtmpYTxESW\downloaded_packages’
>
ANy ideas on why this may be, and how I can fix this? Thank you