R Markdown does not work anymore after update - r

I'm having troubles with R Markdown. I haven't used R for a while and started using it again recently, so I needed to do some updates in R. Now, R Markdown does not work. It says that it requires some updates, but once performing the updates it gives me this error message:
Installing 'rmarkdown' for R Markdown...
[1/4] Installing bslib...
Installing package into 'C:/Users/nicol/Documents/R/win-library/3.6'
(as 'lib' is unspecified)
also installing the dependency 'htmltools'
There are binary versions available but the source versions are later:
binary source needs_compilation
htmltools 0.5.1.1 0.5.3 TRUE
bslib 0.2.4 0.4.0 FALSE
Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/htmltools_0.5.1.1.zip'
Content type 'application/zip' length 242935 bytes (237 KB)
==================================================
downloaded 237 KB
package 'htmltools' successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\nicol\AppData\Local\Temp\Rtmpo7CXdM\downloaded_packages
installing the source package 'bslib'
trying URL 'https://cran.rstudio.com/src/contrib/bslib_0.4.0.tar.gz'
Content type 'application/x-gzip' length 4835866 bytes (4.6 MB)
==================================================
downloaded 4.6 MB
* 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.1.1 is being loaded, but >= 0.5.2 is required
Calls: <Anonymous> ... withCallingHandlers -> loadNamespace -> namespaceImport -> loadNamespace
Execution halted
ERROR: lazy loading failed for package 'bslib'
* removing 'C:/Users/nicol/Documents/R/win-library/3.6/bslib'
[2/4] Installing tinytex...
The downloaded source packages are in
'C:\Users\nicol\AppData\Local\Temp\Rtmpo7CXdM\downloaded_packages'
Installing package into 'C:/Users/nicol/Documents/R/win-library/3.6'
(as 'lib' is unspecified)
also installing the dependency 'xfun'
There are binary versions available but the source versions are later:
binary source needs_compilation
xfun 0.22 0.32 TRUE
tinytex 0.31 0.41 FALSE
Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/xfun_0.22.zip'
Content type 'application/zip' length 323923 bytes (316 KB)
==================================================
downloaded 316 KB
package 'xfun' successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\nicol\AppData\Local\Temp\Rtmpo7CXdM\downloaded_packages
installing the source package 'tinytex'
trying URL 'https://cran.rstudio.com/src/contrib/tinytex_0.41.tar.gz'
Content type 'application/x-gzip' length 32910 bytes (32 KB)
==================================================
downloaded 32 KB
* installing *source* package 'tinytex' ...
** package 'tinytex' 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 'xfun' 0.22 is being loaded, but >= 0.29 is required
Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace
Execution halted
ERROR: lazy loading failed for package 'tinytex'
* removing 'C:/Users/nicol/Documents/R/win-library/3.6/tinytex'
* restoring previous 'C:/Users/nicol/Documents/R/win-library/3.6/tinytex'
[3/4] Installing xfun...
The downloaded source packages are in
'C:\Users\nicol\AppData\Local\Temp\Rtmpo7CXdM\downloaded_packages'
Installing package into 'C:/Users/nicol/Documents/R/win-library/3.6'
(as 'lib' is unspecified)
There is a binary version available but the source version is later:
binary source needs_compilation
xfun 0.22 0.32 TRUE
Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/xfun_0.22.zip'
Content type 'application/zip' length 323923 bytes (316 KB)
==================================================
downloaded 316 KB
package 'xfun' successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\nicol\AppData\Local\Temp\Rtmpo7CXdM\downloaded_packages
[4/4] Installing rmarkdown...
Installing package into 'C:/Users/nicol/Documents/R/win-library/3.6'
(as 'lib' is unspecified)
also installing the dependencies 'htmltools', 'bslib', 'tinytex', 'xfun'
trying URL 'https://cran.rstudio.com/src/contrib/htmltools_0.5.3.tar.gz'
Content type 'application/x-gzip' length 128129 bytes (125 KB)
==================================================
downloaded 125 KB
trying URL 'https://cran.rstudio.com/src/contrib/bslib_0.4.0.tar.gz'
Content type 'application/x-gzip' length 4835866 bytes (4.6 MB)
==================================================
downloaded 4.6 MB
trying URL 'https://cran.rstudio.com/src/contrib/tinytex_0.41.tar.gz'
Content type 'application/x-gzip' length 32910 bytes (32 KB)
==================================================
downloaded 32 KB
trying URL 'https://cran.rstudio.com/src/contrib/xfun_0.32.tar.gz'
Content type 'application/x-gzip' length 127521 bytes (124 KB)
==================================================
downloaded 124 KB
trying URL 'https://cran.rstudio.com/src/contrib/rmarkdown_2.16.tar.gz'
Content type 'application/x-gzip' length 3243854 bytes (3.1 MB)
==================================================
downloaded 3.1 MB
* installing *source* package 'htmltools' ...
** package 'htmltools' successfully unpacked and MD5 sums checked
** using staged installation
** libs
*** arch - i386
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'htmltools'
* removing 'C:/Users/nicol/Documents/R/win-library/3.6/htmltools'
* restoring previous 'C:/Users/nicol/Documents/R/win-library/3.6/htmltools'
* installing *source* package 'xfun' ...
** package 'xfun' successfully unpacked and MD5 sums checked
** using staged installation
** libs
*** arch - i386
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'xfun'
* removing 'C:/Users/nicol/Documents/R/win-library/3.6/xfun'
* restoring previous 'C:/Users/nicol/Documents/R/win-library/3.6/xfun'
* 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.1.1 is being loaded, but >= 0.5.2 is required
Calls: <Anonymous> ... withCallingHandlers -> loadNamespace -> namespaceImport -> loadNamespace
Execution halted
ERROR: lazy loading failed for package 'bslib'
* removing 'C:/Users/nicol/Documents/R/win-library/3.6/bslib'
* installing *source* package 'tinytex' ...
** package 'tinytex' 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 'xfun' 0.22 is being loaded, but >= 0.29 is required
Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace
Execution halted
ERROR: lazy loading failed for package 'tinytex'
* removing 'C:/Users/nicol/Documents/R/win-library/3.6/tinytex'
* restoring previous 'C:/Users/nicol/Documents/R/win-library/3.6/tinytex'
ERROR: dependency 'bslib' is not available for package 'rmarkdown'
* removing 'C:/Users/nicol/Documents/R/win-library/3.6/rmarkdown'
The downloaded source packages are in
'C:\Users\nicol\AppData\Local\Temp\Rtmpo7CXdM\downloaded_packages'
<U+2714> Package 'rmarkdown' successfully installed.
Warning messages:
1: In utils::install.packages("bslib", repos = "https://cran.rstudio.com/") :
installation of package 'bslib' had non-zero exit status
2: In utils::install.packages("tinytex", repos = "https://cran.rstudio.com/") :
installation of package 'tinytex' had non-zero exit status
3: In utils::install.packages("rmarkdown", repos = "https://cran.rstudio.com/", :
installation of package 'htmltools' had non-zero exit status
4: In utils::install.packages("rmarkdown", repos = "https://cran.rstudio.com/", :
installation of package 'xfun' had non-zero exit status
5: In utils::install.packages("rmarkdown", repos = "https://cran.rstudio.com/", :
installation of package 'bslib' had non-zero exit status
6: In utils::install.packages("rmarkdown", repos = "https://cran.rstudio.com/", :
installation of package 'tinytex' had non-zero exit status
7: In utils::install.packages("rmarkdown", repos = "https://cran.rstudio.com/", :
installation of package 'rmarkdown' had non-zero exit status
Does anyone know what I should do to make it work again?
Best regards
Nicolas

Related

I cannot install "photosynthesis" package

For some reason, I dont seem to be able to install the package.
I tried to install it today but I get a couple of errors including the final "Warning in install.packages :
installation of package ‘photosynthesis’ had non-zero exit status"
I have installed other packages and that one is the only one that seems to have a problem.
Some colleagues have been able to install it so I do not know what I am doing wrong
Some help would be really appreciated it
Edit: Full error message
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/rlibs/4.0.5’
(as ‘lib’ is unspecified)
also installing the dependencies ‘cli’, ‘lifecycle’, ‘rlang’, ‘vctrs’, ‘ggplot2’
There are binary versions available but the source versions are later:
binary source needs_compilation
cli 3.2.0 3.6.0 TRUE
lifecycle 1.0.1 1.0.3 FALSE
rlang 1.0.2 1.0.6 TRUE
vctrs 0.4.1 0.5.2 TRUE
ggplot2 3.3.5 3.4.0 FALSE
Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/cli_3.2.0.zip'
Content type 'application/zip' length 1255499 bytes (1.2 MB)
downloaded 1.2 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/rlang_1.0.2.zip'
Content type 'application/zip' length 1718546 bytes (1.6 MB)
downloaded 1.6 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/vctrs_0.4.1.zip'
Content type 'application/zip' length 1569486 bytes (1.5 MB)
downloaded 1.5 MB
package ‘cli’ successfully unpacked and MD5 sums checked
package ‘rlang’ successfully unpacked and MD5 sums checked
package ‘vctrs’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\quesadaa\AppData\Local\Temp\RtmpMBWG1b\downloaded_packages
installing the source packages ‘lifecycle’, ‘ggplot2’, ‘photosynthesis’
trying URL 'https://cran.rstudio.com/src/contrib/lifecycle_1.0.3.tar.gz'
Content type 'application/x-gzip' length 106854 bytes (104 KB)
downloaded 104 KB
trying URL 'https://cran.rstudio.com/src/contrib/ggplot2_3.4.0.tar.gz'
Content type 'application/x-gzip' length 3148426 bytes (3.0 MB)
downloaded 3.0 MB
trying URL 'https://cran.rstudio.com/src/contrib/photosynthesis_2.1.1.tar.gz'
Content type 'application/x-gzip' length 2678855 bytes (2.6 MB)
downloaded 2.6 MB
'\\ad.helsinki.fi\home\q\quesadaa\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 '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
Execution halted
ERROR: lazy loading failed for package 'lifecycle'
* removing 'C:/rlibs/4.0.5/lifecycle'
* restoring previous 'C:/rlibs/4.0.5/lifecycle'
Warning in install.packages :
installation of package ‘lifecycle’ had non-zero exit status
'\\ad.helsinki.fi\home\q\quesadaa\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
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace 'vctrs' 0.4.1 is being loaded, but >= 0.5.0 is required
Calls: <Anonymous> ... withCallingHandlers -> loadNamespace -> namespaceImport -> loadNamespace
Execution halted
ERROR: lazy loading failed for package 'ggplot2'
* removing 'C:/rlibs/4.0.5/ggplot2'
* restoring previous 'C:/rlibs/4.0.5/ggplot2'
Warning in install.packages :
installation of package ‘ggplot2’ had non-zero exit status
'\\ad.helsinki.fi\home\q\quesadaa\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 'photosynthesis' ...
** package 'photosynthesis' successfully unpacked and MD5 sums checked
** using staged installation
** R
Error in parse(outFile) :
C:/Users/quesadaa/AppData/Local/Temp/Rtmp4UkMHR/R.INSTALL31846c817b0d/photosynthesis/R/bake-par.R:22:12: unexpected '>'
21: # Set units ----
22: .x = .x |>
^
ERROR: unable to collate and parse R files for package 'photosynthesis'
* removing 'C:/rlibs/4.0.5/photosynthesis'
Warning in install.packages :
installation of package ‘photosynthesis’ had non-zero exit status

Unable to load an installed package in R

While trying to install and load the package Hmisc in RStudio, I ran into an error. Upon inspection, it turned out to originate from ggplot2. I can replicate the error on my machine as follows:
> install.packages("ggplot2", dependencies=TRUE)
# see bottom of this post for the full log of this command.
> library(ggplot2)
Error in library(ggplot2) : there is no package called 'ggplot2'
I have reinstalled RStudio and its packages, but without success. Also, some other packages (such as AER) do work properly.
Any advice on how to solve this issue would be greatly appreciated.
Full log of install.packages("ggplot2"):
Installing package into <some library>
(as ‘lib’ is unspecified)
also installing the dependencies ‘cli’, ‘rlang’, ‘lifecycle’, ‘scales’
There are binary versions available but the source versions are later:
binary source needs_compilation
cli 3.2.0 3.4.1 TRUE
rlang 1.0.2 1.0.6 TRUE
lifecycle 1.0.1 1.0.3 FALSE
scales 1.2.0 1.2.1 FALSE
ggplot2 3.3.5 3.3.6 FALSE
Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/cli_3.2.0.zip'
Content type 'application/zip' length 1255499 bytes (1.2 MB)
downloaded 1.2 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/rlang_1.0.2.zip'
Content type 'application/zip' length 1718546 bytes (1.6 MB)
downloaded 1.6 MB
package ‘cli’ successfully unpacked and MD5 sums checked
package ‘rlang’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
<some library>
installing the source packages ‘lifecycle’, ‘scales’, ‘ggplot2’
trying URL 'https://cran.rstudio.com/src/contrib/lifecycle_1.0.3.tar.gz'
Content type 'application/x-gzip' length 106854 bytes (104 KB)
downloaded 104 KB
trying URL 'https://cran.rstudio.com/src/contrib/scales_1.2.1.tar.gz'
Content type 'application/x-gzip' length 270609 bytes (264 KB)
downloaded 264 KB
trying URL 'https://cran.rstudio.com/src/contrib/ggplot2_3.3.6.tar.gz'
Content type 'application/x-gzip' length 3061989 bytes (2.9 MB)
downloaded 2.9 MB
* 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
Execution halted
ERROR: lazy loading failed for package 'lifecycle'
* removing <some library>
Warning in install.packages :
installation of package ‘lifecycle’ had non-zero exit status
ERROR: dependency 'lifecycle' is not available for package 'scales'
* removing <some library>
Warning in install.packages :
installation of package ‘scales’ had non-zero exit status
ERROR: dependency 'scales' is not available for package 'ggplot2'
* removing <some library>
Warning in install.packages :
installation of package ‘ggplot2’ had non-zero exit status
The downloaded source packages are in
<some library>
After being advised to install rlang, I first ran remove.packages(rlang), and then install.packages("rlang"), type="source"). However, when I then run library(rlang), I get the error Error in library(rlang) : there is no package called ‘rlang’. Here is the output of install.packages("rlang"):
Installing package into < some library >
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/rlang_1.0.6.tar.gz'
Content type 'application/x-gzip' length 742508 bytes (725 KB)
downloaded 725 KB
* installing *source* package 'rlang' ...
** package 'rlang' successfully unpacked and MD5 sums checked
** using staged installation
** libs
*** arch - i386
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'rlang'
* removing < some library >
Warning in install.packages :
installation of package ‘rlang’ had non-zero exit status
The downloaded source packages are in
< some library >

Error installing ggplot2 in RStudio - MacOS

I'd like to express my thanks in advance for your help. I have been attempting to install the package "ggplot2" for two weeks now in RStudio, and cannot figure out my non-zero exit status errors. I have posted the resulting error code at the end of this message. I have successfully installed some packages, but have failed to install ggplot2 and plotly. I have an assignment due using these packages tonight and would greatly appreciate any insight you can give.
> install.packages("ggplot2", dependencies = TRUE)
also installing the dependencies ‘cli’, ‘rlang’, ‘lifecycle’, ‘scales’
There are binary versions available but the source versions are later:
binary source needs_compilation
cli 3.2.0 3.4.1 TRUE
rlang 1.0.2 1.0.6 TRUE
lifecycle 1.0.1 1.0.3 FALSE
scales 1.1.1 1.2.1 FALSE
ggplot2 3.3.5 3.3.6 FALSE
Do you want to install from sources the packages which need compilation? (Yes/no/cancel) Yes
installing the source packages ‘cli’, ‘rlang’, ‘lifecycle’, ‘scales’, ‘ggplot2’
trying URL 'http://archive.linux.duke.edu/cran/src/contrib/cli_3.4.1.tar.gz'
Content type 'application/octet-stream' length 540044 bytes (527 KB)
==================================================
downloaded 527 KB
trying URL 'http://archive.linux.duke.edu/cran/src/contrib/rlang_1.0.6.tar.gz'
Content type 'application/octet-stream' length 742508 bytes (725 KB)
==================================================
downloaded 725 KB
trying URL 'http://archive.linux.duke.edu/cran/src/contrib/lifecycle_1.0.3.tar.gz'
Content type 'application/octet-stream' length 106854 bytes (104 KB)
==================================================
downloaded 104 KB
trying URL 'http://archive.linux.duke.edu/cran/src/contrib/scales_1.2.1.tar.gz'
Content type 'application/octet-stream' length 270609 bytes (264 KB)
==================================================
downloaded 264 KB
trying URL 'http://archive.linux.duke.edu/cran/src/contrib/ggplot2_3.3.6.tar.gz'
Content type 'application/octet-stream' length 3061989 bytes (2.9 MB)
==================================================
downloaded 2.9 MB
* installing *source* package ‘cli’ ...
** package ‘cli’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
ERROR: compilation failed for package ‘cli’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/cli’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/cli’
Warning in install.packages :
installation of package ‘cli’ had non-zero exit status
* installing *source* package ‘rlang’ ...
** package ‘rlang’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
ERROR: compilation failed for package ‘rlang’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/rlang’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/rlang’
Warning in install.packages :
installation of package ‘rlang’ 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
Execution halted
ERROR: lazy loading failed for package ‘lifecycle’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/lifecycle’
Warning in install.packages :
installation of package ‘lifecycle’ had non-zero exit status
ERROR: dependency ‘lifecycle’ is not available for package ‘scales’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/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/4.0/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/sr/02bnxzdx0hvcp6c37xfhlf300000gn/T/Rtmpje9xhl/downloaded_packages’
> library(ggplot2)
Error in library(ggplot2) : there is no package called ‘ggplot2’

Cant create R markdown document....already tried other solutions, that dont help me

Update: Okay, I got it running now. I hadnt set up the path for Rtools. It still didnt work after doing that. Then I updated my R version, after which R was able to download and install the required packages automatically. Thanks for the help!
I need to run R markdown to hand in some code for an assignment and cant even open a new R markdown file. When I click on opening a new file, R asks me:
"Creating R Markdown documents requires updated versions of the following packages: rmarkdown, tinytex. Do you want to install these packages now"
When I click yes, R starts doing some stuff in the console and then I get an error message.
I alrady tried installing Rtools and the packages xfun, digest, tinytex and rmarkdown manually, which doesnt help either. I still get the error message. Re-starting R and uninstalling didnt help either, so I´m kind of stuck here.
Anyone knows how to get this running?
The output in the console I get when clicking on yes is:
** Installing R Package Dependencies for R Markdown: 'rmarkdown', 'tinytex'
[1/2] Installing tinytex...
also installing the dependency 'xfun'
There are binary versions available but the source versions are later:
binary source needs_compilation
xfun 0.22 0.28 TRUE
tinytex 0.31 0.35 FALSE
Binaries will be installed
versuche URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/xfun_0.22.zip'
Content type 'application/zip' length 323923 bytes (316 KB)
===============================================package 'xfun' successfully unpacked and MD5 sums checked
===
downloaded 316 KB
The downloaded binary packages are in
C:\Users\Uni\AppData\Local\Temp\RtmpA3XedU\downloaded_packages
installing the source package 'tinytex'
versuche URL 'https://cran.rstudio.com/src/contrib/tinytex_0.35.tar.gz'
Content type 'application/x-gzip' length 30624 bytes (29 KB)
==================================================
downloaded 29 KB
* installing *source* package 'tinytex' ...
** Paket 'tinytex' erfolgreich entpackt und MD5 Summen �berpr�ft
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Fehler in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace 'xfun' 0.22 is being loaded, but >= 0.23 is required
Ruft auf: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace
Ausf�hrung angehalten
[2/2] Installing rmarkdown...
ERROR: lazy loading failed for package 'tinytex'
* removing 'D:/R-3.6.0/library/tinytex'
The downloaded source packages are in
'C:\Users\Uni\AppData\Local\Temp\RtmpA3XedU\downloaded_packages'
also installing the dependencies 'xfun', 'tinytex'
versuche URL 'https://cran.rstudio.com/src/contrib/xfun_0.28.tar.gz'
Content type 'application/x-gzip' length 119800 bytes (116 KB)
==================================================
downloaded 116 KB
versuche URL 'https://cran.rstudio.com/src/contrib/tinytex_0.35.tar.gz'
Content type 'application/x-gzip' length 30624 bytes (29 KB)
==================================================
downloaded 29 KB
versuche URL 'https://cran.rstudio.com/src/contrib/rmarkdown_2.11.tar.gz'
Content type 'application/x-gzip' length 3212367 bytes (3.1 MB)
==================================================
downloaded 3.1 MB
* installing *source* package 'xfun' ...
** Paket 'xfun' erfolgreich entpackt und MD5 Summen �berpr�ft
** using staged installation
** libs
*** arch - i386
Warnung in system(cmd) 'make' not found
ERROR: compilation failed for package 'xfun'
* removing 'D:/R-3.6.0/library/xfun'
* restoring previous 'D:/R-3.6.0/library/xfun'
* installing *source* package 'tinytex' ...
** Paket 'tinytex' erfolgreich entpackt und MD5 Summen �berpr�ft
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Fehler in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace 'xfun' 0.22 is being loaded, but >= 0.23 is required
Ruft auf: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace
Ausf�hrung angehalten
ERROR: lazy loading failed for package 'tinytex'
* removing 'D:/R-3.6.0/library/tinytex'
ERROR: dependency 'tinytex' is not available for package 'rmarkdown'
* removing 'D:/R-3.6.0/library/rmarkdown'
The downloaded source packages are in
'C:\Users\Uni\AppData\Local\Temp\RtmpA3XedU\downloaded_packages'
<U+2714> Packages successfully installed.
Warnmeldungen:
1: In utils::install.packages("tinytex", repos = "https://cran.rstudio.com/") :
installation of package 'tinytex' had non-zero exit status
2: In utils::install.packages("rmarkdown", repos = "https://cran.rstudio.com/", :
installation of package 'xfun' had non-zero exit status
3: In utils::install.packages("rmarkdown", repos = "https://cran.rstudio.com/", :
installation of package 'tinytex' had non-zero exit status
4: In utils::install.packages("rmarkdown", repos = "https://cran.rstudio.com/", :
installation of package 'rmarkdown' had non-zero exit status
You should check carefully the following messages
There are binary versions available but the source versions are later:
binary source needs_compilation
xfun 0.22 0.28 TRUE
Fehler in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace 'xfun' 0.22 is being loaded, but >= 0.23 is required
R is not installing 'xfun' probably because it needs compilation. Your problem is similar to this.
I suggest you check the documentation of install.packages. Specially here
"Using packages with type = "source" always works provided the package contains no C/C++/Fortran code that needs compilation. Otherwise, on Windows
you will need to have installed the Rtools collection as described in the ‘R for Windows FAQ’ and you must have the PATH environment variable set up as required by Rtools."
And here:
"When installing a binary package, install.packages will abort the install if it detects that the package is already installed and is currently in use."
Thus, you can try this before checking that Rtools is updated and you haven't load the package in your session:
install.packages("xfun", type = "source)
I highly recommend that you also upgrade your R-version before update the packages.

Error in installing tidyverse in Windows: installation had non-zero exit status

I'm trying to install tidyverse package in R in Windows. However, I get the error message:
In R CMD INSTALL
Warning in install.packages :
installation of package ‘tidyverse’ had non-zero exit status
I couldn't find solutions for this problem on Windows, only for Ubuntu.
The entire installation message is described below:
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/u006743/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
also installing the dependencies ‘processx’, ‘highr’, ‘xfun’, ‘tinytex’, ‘lifecycle’, ‘tidyselect’, ‘vctrs’, ‘gargle’, ‘rematch2’, ‘scales’, ‘ellipsis’, ‘callr’, ‘knitr’, ‘rmarkdown’, ‘broom’, ‘dbplyr’, ‘dplyr’, ‘dtplyr’, ‘forcats’, ‘googledrive’, ‘googlesheets4’, ‘ggplot2’, ‘haven’, ‘hms’, ‘jsonlite’, ‘lubridate’, ‘magrittr’, ‘modelr’, ‘pillar’, ‘readr’, ‘reprex’, ‘rlang’, ‘rvest’, ‘tibble’, ‘tidyr’
There are binary versions available but the source versions are later:
binary source needs_compilation
processx 3.4.2 3.5.2 TRUE
highr 0.8 0.9 FALSE
xfun 0.13 0.23 FALSE
tinytex 0.22 0.32 FALSE
lifecycle 0.2.0 1.0.0 FALSE
tidyselect 1.0.0 1.1.1 FALSE
vctrs 0.2.4 0.3.8 TRUE
gargle 0.4.0 1.1.0 FALSE
rematch2 2.1.0 2.1.2 FALSE
scales 1.1.0 1.1.1 FALSE
ellipsis 0.3.0 0.3.2 TRUE
callr 3.4.3 3.7.0 FALSE
knitr 1.28 1.33 FALSE
rmarkdown 2.1 2.9 FALSE
broom 0.5.6 0.7.7 FALSE
dbplyr 1.4.3 2.1.1 FALSE
dplyr 0.8.5 1.0.6 TRUE
dtplyr 1.0.1 1.1.0 FALSE
forcats 0.5.0 0.5.1 FALSE
googledrive 1.0.0 1.0.1 FALSE
googlesheets4 0.1.1 0.3.0 FALSE
ggplot2 3.3.0 3.3.3 FALSE
haven 2.2.0 2.4.1 TRUE
hms 0.5.3 1.1.0 FALSE
jsonlite 1.6.1 1.7.2 TRUE
lubridate 1.7.8 1.7.10 TRUE
magrittr 1.5 2.0.1 FALSE
modelr 0.1.6 0.1.8 FALSE
pillar 1.4.3 1.6.1 FALSE
readr 1.3.1 1.4.0 TRUE
reprex 0.3.0 2.0.0 FALSE
rlang 0.4.5 0.4.11 TRUE
rvest 0.3.5 1.0.0 FALSE
tibble 3.0.1 3.1.2 TRUE
tidyr 1.0.2 1.1.3 TRUE
tidyverse 1.3.0 1.3.1 FALSE
Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/processx_3.4.2.zip'
Content type 'application/zip' length 425981 bytes (415 KB)
downloaded 415 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/vctrs_0.2.4.zip'
Content type 'application/zip' length 1018801 bytes (994 KB)
downloaded 994 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/ellipsis_0.3.0.zip'
Content type 'application/zip' length 44220 bytes (43 KB)
downloaded 43 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/dplyr_0.8.5.zip'
Content type 'application/zip' length 3256479 bytes (3.1 MB)
downloaded 3.1 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/haven_2.2.0.zip'
Content type 'application/zip' length 1050152 bytes (1.0 MB)
downloaded 1.0 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/jsonlite_1.6.1.zip'
Content type 'application/zip' length 1164207 bytes (1.1 MB)
downloaded 1.1 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/lubridate_1.7.8.zip'
Content type 'application/zip' length 1583751 bytes (1.5 MB)
downloaded 1.5 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/readr_1.3.1.zip'
Content type 'application/zip' length 1588558 bytes (1.5 MB)
downloaded 1.5 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/rlang_0.4.5.zip'
Content type 'application/zip' length 1115838 bytes (1.1 MB)
downloaded 1.1 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/tibble_3.0.1.zip'
Content type 'application/zip' length 407904 bytes (398 KB)
downloaded 398 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/tidyr_1.0.2.zip'
Content type 'application/zip' length 1297802 bytes (1.2 MB)
downloaded 1.2 MB
package ‘processx’ successfully unpacked and MD5 sums checked
package ‘vctrs’ successfully unpacked and MD5 sums checked
package ‘ellipsis’ successfully unpacked and MD5 sums checked
package ‘dplyr’ successfully unpacked and MD5 sums checked
package ‘haven’ successfully unpacked and MD5 sums checked
package ‘jsonlite’ successfully unpacked and MD5 sums checked
package ‘lubridate’ successfully unpacked and MD5 sums checked
package ‘readr’ successfully unpacked and MD5 sums checked
package ‘rlang’ successfully unpacked and MD5 sums checked
package ‘tibble’ successfully unpacked and MD5 sums checked
package ‘tidyr’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\u006743\AppData\Local\Temp\Rtmp0cmfHs\downloaded_packages
installing the source packages ‘highr’, ‘xfun’, ‘tinytex’, ‘lifecycle’, ‘tidyselect’, ‘gargle’, ‘rematch2’, ‘scales’, ‘callr’, ‘knitr’, ‘rmarkdown’, ‘broom’, ‘dbplyr’, ‘dtplyr’, ‘forcats’, ‘googledrive’, ‘googlesheets4’, ‘ggplot2’, ‘hms’, ‘magrittr’, ‘modelr’, ‘pillar’, ‘reprex’, ‘rvest’, ‘tidyverse’
trying URL 'https://cran.rstudio.com/src/contrib/highr_0.9.tar.gz'
Content type 'application/x-gzip' length 15188 bytes (14 KB)
downloaded 14 KB
trying URL 'https://cran.rstudio.com/src/contrib/xfun_0.23.tar.gz'
Content type 'application/x-gzip' length 111696 bytes (109 KB)
downloaded 109 KB
trying URL 'https://cran.rstudio.com/src/contrib/tinytex_0.32.tar.gz'
Content type 'application/x-gzip' length 30014 bytes (29 KB)
downloaded 29 KB
trying URL 'https://cran.rstudio.com/src/contrib/lifecycle_1.0.0.tar.gz'
Content type 'application/x-gzip' length 83389 bytes (81 KB)
downloaded 81 KB
trying URL 'https://cran.rstudio.com/src/contrib/tidyselect_1.1.1.tar.gz'
Content type 'application/x-gzip' length 92088 bytes (89 KB)
downloaded 89 KB
trying URL 'https://cran.rstudio.com/src/contrib/gargle_1.1.0.tar.gz'
Content type 'application/x-gzip' length 295629 bytes (288 KB)
downloaded 288 KB
trying URL 'https://cran.rstudio.com/src/contrib/rematch2_2.1.2.tar.gz'
Content type 'application/x-gzip' length 13366 bytes (13 KB)
downloaded 13 KB
trying URL 'https://cran.rstudio.com/src/contrib/scales_1.1.1.tar.gz'
Content type 'application/x-gzip' length 515201 bytes (503 KB)
downloaded 503 KB
trying URL 'https://cran.rstudio.com/src/contrib/callr_3.7.0.tar.gz'
Content type 'application/x-gzip' length 74518 bytes (72 KB)
downloaded 72 KB
trying URL 'https://cran.rstudio.com/src/contrib/knitr_1.33.tar.gz'
Content type 'application/x-gzip' length 892378 bytes (871 KB)
downloaded 871 KB
trying URL 'https://cran.rstudio.com/src/contrib/rmarkdown_2.9.tar.gz'
Content type 'application/x-gzip' length 3246617 bytes (3.1 MB)
downloaded 3.1 MB
trying URL 'https://cran.rstudio.com/src/contrib/broom_0.7.7.tar.gz'
Content type 'application/x-gzip' length 632928 bytes (618 KB)
downloaded 618 KB
trying URL 'https://cran.rstudio.com/src/contrib/dbplyr_2.1.1.tar.gz'
Content type 'application/x-gzip' length 581845 bytes (568 KB)
downloaded 568 KB
trying URL 'https://cran.rstudio.com/src/contrib/dtplyr_1.1.0.tar.gz'
Content type 'application/x-gzip' length 111895 bytes (109 KB)
downloaded 109 KB
trying URL 'https://cran.rstudio.com/src/contrib/forcats_0.5.1.tar.gz'
Content type 'application/x-gzip' length 258301 bytes (252 KB)
downloaded 252 KB
trying URL 'https://cran.rstudio.com/src/contrib/googledrive_1.0.1.tar.gz'
Content type 'application/x-gzip' length 1808539 bytes (1.7 MB)
downloaded 1.7 MB
trying URL 'https://cran.rstudio.com/src/contrib/googlesheets4_0.3.0.tar.gz'
Content type 'application/x-gzip' length 435126 bytes (424 KB)
downloaded 424 KB
trying URL 'https://cran.rstudio.com/src/contrib/ggplot2_3.3.3.tar.gz'
Content type 'application/x-gzip' length 3058840 bytes (2.9 MB)
downloaded 2.9 MB
trying URL 'https://cran.rstudio.com/src/contrib/hms_1.1.0.tar.gz'
Content type 'application/x-gzip' length 43142 bytes (42 KB)
downloaded 42 KB
trying URL 'https://cran.rstudio.com/src/contrib/magrittr_2.0.1.tar.gz'
Content type 'application/x-gzip' length 265580 bytes (259 KB)
downloaded 259 KB
trying URL 'https://cran.rstudio.com/src/contrib/modelr_0.1.8.tar.gz'
Content type 'application/x-gzip' length 121333 bytes (118 KB)
downloaded 118 KB
trying URL 'https://cran.rstudio.com/src/contrib/pillar_1.6.1.tar.gz'
Content type 'application/x-gzip' length 1111747 bytes (1.1 MB)
downloaded 1.1 MB
trying URL 'https://cran.rstudio.com/src/contrib/reprex_2.0.0.tar.gz'
Content type 'application/x-gzip' length 1087170 bytes (1.0 MB)
downloaded 1.0 MB
trying URL 'https://cran.rstudio.com/src/contrib/rvest_1.0.0.tar.gz'
Content type 'application/x-gzip' length 94134 bytes (91 KB)
downloaded 91 KB
trying URL 'https://cran.rstudio.com/src/contrib/tidyverse_1.3.1.tar.gz'
Content type 'application/x-gzip' length 702779 bytes (686 KB)
downloaded 686 KB
* installing *source* package 'xfun' ...
** package 'xfun' successfully unpacked and MD5 sums checked
** libs
*** arch - i386
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'xfun'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/xfun'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘xfun’ had non-zero exit status
* installing *source* package 'lifecycle' ...
** package 'lifecycle' successfully unpacked and MD5 sums checked
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace 'rlang' 0.4.5 is being loaded, but >= 0.4.10 is required
ERROR: lazy loading failed for package 'lifecycle'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/lifecycle'
In R CMD INSTALL
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
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace 'rlang' 0.4.5 is being loaded, but >= 0.4.6 is required
ERROR: lazy loading failed for package 'tidyselect'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/tidyselect'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘tidyselect’ had non-zero exit status
* installing *source* package 'gargle' ...
** package 'gargle' successfully unpacked and MD5 sums checked
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace 'rlang' 0.4.5 is being loaded, but >= 0.4.9 is required
ERROR: lazy loading failed for package 'gargle'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/gargle'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘gargle’ had non-zero exit status
* installing *source* package 'rematch2' ...
** package 'rematch2' 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 'lifecycle'
ERROR: lazy loading failed for package 'rematch2'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/rematch2'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘rematch2’ had non-zero exit status
* installing *source* package 'callr' ...
** package 'callr' 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 'processx' 3.4.2 is being loaded, but >= 3.5.0 is required
ERROR: lazy loading failed for package 'callr'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/callr'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘callr’ had non-zero exit status
* installing *source* package 'broom' ...
** package 'broom' successfully unpacked and MD5 sums checked
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace 'dplyr' 0.8.5 is being loaded, but >= 1.0.0 is required
ERROR: lazy loading failed for package 'broom'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/broom'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘broom’ had non-zero exit status
* installing *source* package 'magrittr' ...
** package 'magrittr' successfully unpacked and MD5 sums checked
** libs
*** arch - i386
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'magrittr'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/magrittr'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘magrittr’ had non-zero exit status
ERROR: dependency 'xfun' is not available for package 'highr'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/highr'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘highr’ had non-zero exit status
ERROR: dependency 'xfun' is not available for package 'tinytex'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/tinytex'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘tinytex’ had non-zero exit status
ERROR: dependency 'lifecycle' is not available for package 'scales'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/scales'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘scales’ had non-zero exit status
ERROR: dependencies 'lifecycle', 'magrittr', 'tidyselect' are not available for package 'dbplyr'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/dbplyr'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘dbplyr’ had non-zero exit status
ERROR: dependencies 'lifecycle', 'tidyselect' are not available for package 'dtplyr'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/dtplyr'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘dtplyr’ had non-zero exit status
ERROR: dependency 'magrittr' is not available for package 'forcats'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/forcats'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘forcats’ had non-zero exit status
ERROR: dependencies 'gargle', 'magrittr' are not available for package 'googledrive'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/googledrive'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘googledrive’ had non-zero exit status
ERROR: dependency 'lifecycle' is not available for package 'hms'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/hms'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘hms’ had non-zero exit status
ERROR: dependencies 'broom', 'magrittr', 'tidyselect' are not available for package 'modelr'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/modelr'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘modelr’ had non-zero exit status
ERROR: dependency 'lifecycle' is not available for package 'pillar'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/pillar'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘pillar’ had non-zero exit status
ERROR: dependencies 'lifecycle', 'magrittr' are not available for package 'rvest'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/rvest'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘rvest’ had non-zero exit status
ERROR: dependencies 'highr', 'xfun' are not available for package 'knitr'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/knitr'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘knitr’ had non-zero exit status
ERROR: dependencies 'gargle', 'googledrive', 'lifecycle', 'magrittr', 'rematch2' are not available for package 'googlesheets4'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/googlesheets4'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘googlesheets4’ had non-zero exit status
ERROR: dependency 'scales' is not available for package 'ggplot2'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/ggplot2'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘ggplot2’ had non-zero exit status
ERROR: dependencies 'knitr', 'tinytex', 'xfun' are not available for package 'rmarkdown'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/rmarkdown'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘rmarkdown’ had non-zero exit status
ERROR: failed to lock directory 'C:/Users/u006743/Documents/R/win-library/3.5' for modifying
Try removing 'C:/Users/u006743/Documents/R/win-library/3.5/00LOCK-reprex'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘reprex’ had non-zero exit status
ERROR: dependencies 'broom', 'dbplyr', 'dtplyr', 'forcats', 'googledrive', 'googlesheets4', 'ggplot2', 'hms', 'magrittr', 'modelr', 'pillar', 'reprex', 'rvest' are not available for package 'tidyverse'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/tidyverse'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘tidyverse’ had non-zero exit status

Resources