I ran the install.packages("ggplot2", dependencies = TRUE) code but got the following errors:
> install.packages("ggplot2", dependencies = TRUE)
Installing package into ‘C:\/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
Warning in install.packages :
dependency ‘mvtnorm’ is not available
also installing the dependencies ‘xfun’, ‘tinytex’, ‘knitr’, ‘multcomp’, ‘rmarkdown’
There are binary versions available but the source versions are later:
binary source needs_compilation
xfun 0.6 0.9 FALSE
tinytex 0.12 0.15 FALSE
knitr 1.22 1.24 FALSE
multcomp 1.4-8 1.4-10 FALSE
rmarkdown 1.12 1.15 FALSE
ggplot2 3.1.1 3.2.1 FALSE
installing the source packages ‘xfun’, ‘tinytex’, ‘knitr’, ‘multcomp’, ‘rmarkdown’, ‘ggplot2’
'C:\Documents'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
* installing *source* package 'xfun' ...
** package 'xfun' successfully unpacked and MD5 sums checked
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
Warning in file(con, "w") :
cannot open file 'C:\/Documents/R/win-library/3.4/xfun/doc/index.html': No such file or directory
Error in file(con, "w") : cannot open the connection
ERROR: installing vignettes failed
* removing 'C:\/Documents/R/win-library/3.4/xfun'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-34~1.1/bin/x64/R" CMD INSTALL -l "C:\Documents\R\win-library\3.4" C:\\AppData\Local\Temp\RtmpemhF6t/downloaded_packages/xfun_0.9.tar.gz' had status 1
Warning in install.packages :
installation of package ‘xfun’ had non-zero exit status
'C:\Documents'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
ERROR: dependency 'mvtnorm' is not available for package 'multcomp'
* removing 'C:\/Documents/R/win-library/3.4/multcomp'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-34~1.1/bin/x64/R" CMD INSTALL -l "C:\Documents\R\win-library\3.4" C:\\AppData\Local\Temp\RtmpemhF6t/downloaded_packages/multcomp_1.4-10.tar.gz' had status 1
Warning in install.packages :
installation of package ‘multcomp’ had non-zero exit status
'C:\Documents'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
* installing *source* package 'ggplot2' ...
** package 'ggplot2' successfully unpacked and MD5 sums checked
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
Warning in file(con, "w") :
cannot open file 'C:\/Documents/R/win-library/3.4/ggplot2/doc/index.html': No such file or directory
Error in file(con, "w") : cannot open the connection
ERROR: installing vignettes failed
* removing 'C:\/Documents/R/win-library/3.4/ggplot2'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-34~1.1/bin/x64/R" CMD INSTALL -l "C:\Documents\R\win-library\3.4" C:\\AppData\Local\Temp\RtmpemhF6t/downloaded_packages/ggplot2_3.2.1.tar.gz' had status 1
Warning in install.packages :
installation of package ‘ggplot2’ had non-zero exit status
'C:\Documents'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
ERROR: dependency 'xfun' is not available for package 'tinytex'
* removing 'C:\/Documents/R/win-library/3.4/tinytex'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-34~1.1/bin/x64/R" CMD INSTALL -l "C:\Documents\R\win-library\3.4" C:\\AppData\Local\Temp\RtmpemhF6t/downloaded_packages/tinytex_0.15.tar.gz' had status 1
Warning in install.packages :
installation of package ‘tinytex’ had non-zero exit status
'C:\Documents'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
ERROR: dependency 'xfun' is not available for package 'knitr'
* removing 'C:\/Documents/R/win-library/3.4/knitr'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-34~1.1/bin/x64/R" CMD INSTALL -l "C:\Documents\R\win-library\3.4" C:\\AppData\Local\Temp\RtmpemhF6t/downloaded_packages/knitr_1.24.tar.gz' had status 1
Warning in install.packages :
installation of package ‘knitr’ had non-zero exit status
'C:\Documents'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
ERROR: dependencies 'knitr', 'tinytex', 'xfun' are not available for package 'rmarkdown'
* removing 'C:\/Documents/R/win-library/3.4/rmarkdown'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-34~1.1/bin/x64/R" CMD INSTALL -l "C:\Documents\R\win-library\3.4" C:\\AppData\Local\Temp\RtmpemhF6t/downloaded_packages/rmarkdown_1.15.tar.gz' had status 1
Warning in install.packages :
installation of package ‘rmarkdown’ had non-zero exit status
The downloaded source packages are in
‘C:\\AppData\Local\Temp\RtmpemhF6t\downloaded_packages’