I have been trying to install tidyverse with this line with R studio in Window:
install.packages("tidyverse")
However I keep getting the long error message below. I can see tidyverse source packages was downloaded to D drive of my temp folder but it can never be loaded into my R studio. Just wondering if anyone can help? Thanks.
'\home_drives\tam001v'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
ERROR: dependencies 'broom', 'dbplyr', 'dtplyr', 'forcats', 'googledrive', 'googlesheets4', 'ggplot2', 'hms', 'httr', 'modelr', 'pillar', 'reprex', 'rstudioapi', 'rvest' are not available for package 'tidyverse'
removing '\home_drives/tam001v/R/win-library/3.5/tidyverse'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘tidyverse’ had non-zero exit status
It seems you have set your package library into a network folder, R has problems with network drives, you could try mapping the folder as a local unit or set your package library in a local folder.
Thanks for your help Andres. I set the package library in a local folder (‘D:/Users/tam001v/Downloads/R lib’) but I am getting an error message with the tidyverse folder getting removed at the end.
Do I need to remove the network drive path thoroughly in .libPaths() despite it is not the first path on list?
'\home_drives\tam001v'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
ERROR: dependencies 'callr', 'knitr', 'rmarkdown' are not available for package 'reprex'
removing 'D:/Users/tam001v/Downloads/R lib/reprex'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘reprex’ had non-zero exit status
'\home_drives\tam001v'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
ERROR: dependencies 'broom', 'dbplyr', 'dtplyr', 'googledrive', 'googlesheets4', 'ggplot2', 'hms', 'modelr', 'pillar', 'reprex', 'rvest' are not available for package 'tidyverse'
removing 'D:/Users/tam001v/Downloads/R lib/tidyverse'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘tidyverse’ had non-zero exit status
Thanks Andres. I have updated R to 1.3.1093 (as I am using Window 7) and changed the working and library to a local folder. Then I get a different error message as below...
--
installing source package 'tinytex' ...
** package 'tinytex' successfully unpacked and MD5 sums checked
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace 'xfun' 0.13 is being loaded, but >= 0.23 is required
ERROR: lazy loading failed for package 'tinytex'
removing 'D:/Users/tam001v/RStudio/lib/tinytex'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘tinytex’ had non-zero exit status
Ah in that case there are quite a few packages I need to update before installing tidyverse packages again. I will see how it goes. Thanks for your help!