** Installing R Package Dependencies for R Markdown: 'highr', 'htmltools', 'knitr', 'magrittr', 'rmarkdown', 'xfun' ERROR

Could you please help me? I'm not able to install those packages:**

** Installing R Package Dependencies for R Markdown: 'highr', 'htmltools', 'knitr', 'magrittr', 'rmarkdown', 'xfun'



[1/10] Installing xfun...

Installing package into 'C:/Users/A342709/OneDrive/R/win-library/3.4'
(as 'lib' is unspecified)

  There is a binary version available but the source version is later:
     binary source needs_compilation
xfun    0.6   0.37             FALSE

installing the source package 'xfun'

trying URL 'https://cran.rstudio.com/src/contrib/xfun_0.37.tar.gz'
Content type 'application/x-gzip' length 130063 bytes (127 KB)
==================================================
downloaded 127 KB

* installing *source* package 'xfun' ...
** package 'xfun' successfully unpacked and MD5 sums checked
** libs

*** arch - i386
Warning: running command 'make -f "C:/PROGRA~1/R/R-34~1.2/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-34~1.2/share/make/winshlib.mk" SHLIB="xfun.dll" OBJECTS="base64.o init.o"' had status 127
ERROR: compilation failed for package 'xfun'
* removing 'C:/Users/A342709/OneDrive/R/win-library/3.4/xfun'


[2/10] Installing highr...


The downloaded source packages are in
	'C:\Users\A342709\AppData\Local\Temp\Rtmp4Qcyik\downloaded_packages'
Installing package into 'C:/Users/A342709/OneDrive/R/win-library/3.4'
(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.6   0.37             FALSE
highr    0.8   0.10             FALSE

installing the source packages 'xfun', 'highr'

trying URL 'https://cran.rstudio.com/src/contrib/xfun_0.37.tar.gz'
Content type 'application/x-gzip' length 130063 bytes (127 KB)
==================================================
downloaded 127 KB

trying URL 'https://cran.rstudio.com/src/contrib/highr_0.10.tar.gz'
Content type 'application/x-gzip' length 15084 bytes (14 KB)
==================================================
downloaded 14 KB

* installing *source* package 'xfun' ...
** package 'xfun' successfully unpacked and MD5 sums checked
** libs

*** arch - i386
Warning: running command 'make -f "C:/PROGRA~1/R/R-34~1.2/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-34~1.2/share/make/winshlib.mk" SHLIB="xfun.dll" OBJECTS="base64.o init.o"' had status 127
ERROR: compilation failed for package 'xfun'
* removing 'C:/Users/A342709/OneDrive/R/win-library/3.4/xfun'
ERROR: dependency 'xfun' is not available for package 'highr'
* removing 'C:/Users/A342709/OneDrive/R/win-library/3.4/highr'


[3/10] Installing rlang...


The downloaded source packages are in
	'C:\Users\A342709\AppData\Local\Temp\Rtmp4Qcyik\downloaded_packages'
Installing package into 'C:/Users/A342709/OneDrive/R/win-library/3.4'
(as 'lib' is unspecified)

  There is a binary version available but the source version is later:
      binary source needs_compilation
rlang  0.3.4  1.0.6              TRUE

  Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/rlang_0.3.4.zip'
Content type 'application/zip' length 1080437 bytes (1.0 MB)
==================================================
downloaded 1.0 MB

package 'rlang' successfully unpacked and MD5 sums checked

The downloaded binary packages are in
	C:\Users\A342709\AppData\Local\Temp\Rtmp4Qcyik\downloaded_packages


[4/10] Installing fastmap...

Installing package into 'C:/Users/A342709/OneDrive/R/win-library/3.4'
(as 'lib' is unspecified)
  These will not be installed


[5/10] Installing htmltools...

Package which is only available in source form, and may need
  compilation of C/C++/Fortran: 'fastmap'
Installing package into 'C:/Users/A342709/OneDrive/R/win-library/3.4'
(as 'lib' is unspecified)
also installing the dependencies 'rlang', 'fastmap'


  There are binary versions available but the source versions are later:
          binary source needs_compilation
rlang      0.3.4  1.0.6              TRUE
htmltools  0.3.6  0.5.4              TRUE

  Binaries will be installed
  These will not be installed
Package which is only available in source form, and may need
  compilation of C/C++/Fortran: 'fastmap'
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/rlang_0.3.4.zip'
Content type 'application/zip' length 1080437 bytes (1.0 MB)
==================================================
downloaded 1.0 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/htmltools_0.3.6.zip'
Content type 'application/zip' length 617917 bytes (603 KB)
==================================================
downloaded 603 KB

package 'rlang' successfully unpacked and MD5 sums checked
package 'htmltools' successfully unpacked and MD5 sums checked

The downloaded binary packages are in
	C:\Users\A342709\AppData\Local\Temp\Rtmp4Qcyik\downloaded_packages


[6/10] Installing knitr...

Installing package into 'C:/Users/A342709/OneDrive/R/win-library/3.4'
(as 'lib' is unspecified)
also installing the dependencies 'highr', 'xfun'


  There are binary versions available but the source versions are later:
      binary source needs_compilation
highr    0.8   0.10             FALSE
xfun     0.6   0.37             FALSE
knitr   1.22   1.42             FALSE

installing the source packages 'highr', 'xfun', 'knitr'

trying URL 'https://cran.rstudio.com/src/contrib/highr_0.10.tar.gz'
Content type 'application/x-gzip' length 15084 bytes (14 KB)
==================================================
downloaded 14 KB

trying URL 'https://cran.rstudio.com/src/contrib/xfun_0.37.tar.gz'
Content type 'application/x-gzip' length 130063 bytes (127 KB)
==================================================
downloaded 127 KB

trying URL 'https://cran.rstudio.com/src/contrib/knitr_1.42.tar.gz'
Content type 'application/x-gzip' length 893585 bytes (872 KB)
==================================================
downloaded 872 KB

* installing *source* package 'xfun' ...
** package 'xfun' successfully unpacked and MD5 sums checked
** libs

*** arch - i386
Warning: running command 'make -f "C:/PROGRA~1/R/R-34~1.2/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-34~1.2/share/make/winshlib.mk" SHLIB="xfun.dll" OBJECTS="base64.o init.o"' had status 127
ERROR: compilation failed for package 'xfun'
* removing 'C:/Users/A342709/OneDrive/R/win-library/3.4/xfun'
ERROR: dependency 'xfun' is not available for package 'highr'
* removing 'C:/Users/A342709/OneDrive/R/win-library/3.4/highr'
ERROR: dependencies 'highr', 'xfun' are not available for package 'knitr'
* removing 'C:/Users/A342709/OneDrive/R/win-library/3.4/knitr'


[7/10] Installing magrittr...


The downloaded source packages are in
	'C:\Users\A342709\AppData\Local\Temp\Rtmp4Qcyik\downloaded_packages'
Installing package into 'C:/Users/A342709/OneDrive/R/win-library/3.4'
(as 'lib' is unspecified)

  There is a binary version available but the source version is later:
         binary source needs_compilation
magrittr    1.5  2.0.3             FALSE

installing the source package 'magrittr'

trying URL 'https://cran.rstudio.com/src/contrib/magrittr_2.0.3.tar.gz'
Content type 'application/x-gzip' length 267074 bytes (260 KB)
==================================================
downloaded 260 KB

* installing *source* package 'magrittr' ...
** package 'magrittr' successfully unpacked and MD5 sums checked
** libs

*** arch - i386
Warning: running command 'make -f "C:/PROGRA~1/R/R-34~1.2/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-34~1.2/share/make/winshlib.mk" SHLIB="magrittr.dll" OBJECTS="pipe.o utils.o"' had status 127
ERROR: compilation failed for package 'magrittr'
* removing 'C:/Users/A342709/OneDrive/R/win-library/3.4/magrittr'


[8/10] Installing bslib...


The downloaded source packages are in
	'C:\Users\A342709\AppData\Local\Temp\Rtmp4Qcyik\downloaded_packages'
Installing package into 'C:/Users/A342709/OneDrive/R/win-library/3.4'
(as 'lib' is unspecified)
also installing the dependencies 'rlang', 'fastmap', 'htmltools', 'sass', 'cachem', 'memoise'


  There are binary versions available but the source versions are later:
          binary source needs_compilation
rlang      0.3.4  1.0.6              TRUE
htmltools  0.3.6  0.5.4              TRUE
memoise    1.1.0  2.0.1             FALSE

  Binaries will be installed
  These will not be installed
Packages which are only available in source form, and may need
  compilation of C/C++/Fortran: 'fastmap' 'sass' 'cachem'
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/rlang_0.3.4.zip'
Content type 'application/zip' length 1080437 bytes (1.0 MB)
==================================================
downloaded 1.0 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/htmltools_0.3.6.zip'
Content type 'application/zip' length 617917 bytes (603 KB)
==================================================
downloaded 603 KB

package 'rlang' successfully unpacked and MD5 sums checked
package 'htmltools' successfully unpacked and MD5 sums checked

The downloaded binary packages are in
	C:\Users\A342709\AppData\Local\Temp\Rtmp4Qcyik\downloaded_packages
installing the source packages 'memoise', 'bslib'

trying URL 'https://cran.rstudio.com/src/contrib/memoise_2.0.1.tar.gz'
Content type 'application/x-gzip' length 17852 bytes (17 KB)
==================================================
downloaded 17 KB

trying URL 'https://cran.rstudio.com/src/contrib/bslib_0.4.2.tar.gz'
Content type 'application/x-gzip' length 4830133 bytes (4.6 MB)
==================================================
downloaded 4.6 MB

ERROR: dependency 'cachem' is not available for package 'memoise'
* removing 'C:/Users/A342709/OneDrive/R/win-library/3.4/memoise'
ERROR: dependencies 'sass', 'cachem', 'memoise' are not available for package 'bslib'
* removing 'C:/Users/A342709/OneDrive/R/win-library/3.4/bslib'


[9/10] Installing tinytex...


The downloaded source packages are in
	'C:\Users\A342709\AppData\Local\Temp\Rtmp4Qcyik\downloaded_packages'
Installing package into 'C:/Users/A342709/OneDrive/R/win-library/3.4'
(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.6   0.37             FALSE
tinytex   0.12   0.44             FALSE

installing the source packages 'xfun', 'tinytex'

trying URL 'https://cran.rstudio.com/src/contrib/xfun_0.37.tar.gz'
Content type 'application/x-gzip' length 130063 bytes (127 KB)
==================================================
downloaded 127 KB

trying URL 'https://cran.rstudio.com/src/contrib/tinytex_0.44.tar.gz'
Content type 'application/x-gzip' length 32980 bytes (32 KB)
==================================================
downloaded 32 KB

* installing *source* package 'xfun' ...
** package 'xfun' successfully unpacked and MD5 sums checked
** libs

*** arch - i386
Warning: running command 'make -f "C:/PROGRA~1/R/R-34~1.2/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-34~1.2/share/make/winshlib.mk" SHLIB="xfun.dll" OBJECTS="base64.o init.o"' had status 127
ERROR: compilation failed for package 'xfun'
* removing 'C:/Users/A342709/OneDrive/R/win-library/3.4/xfun'
ERROR: dependency 'xfun' is not available for package 'tinytex'
* removing 'C:/Users/A342709/OneDrive/R/win-library/3.4/tinytex'


[10/10] Installing rmarkdown...


The downloaded source packages are in
	'C:\Users\A342709\AppData\Local\Temp\Rtmp4Qcyik\downloaded_packages'
Installing package into 'C:/Users/A342709/OneDrive/R/win-library/3.4'
(as 'lib' is unspecified)
also installing the dependencies 'sass', 'cachem', 'memoise', 'rlang', 'fastmap', 'highr', 'bslib', 'htmltools', 'knitr', 'tinytex', 'xfun'

trying URL 'https://cran.rstudio.com/src/contrib/sass_0.4.5.tar.gz'
Content type 'application/x-gzip' length 3026825 bytes (2.9 MB)
==================================================
downloaded 2.9 MB

trying URL 'https://cran.rstudio.com/src/contrib/cachem_1.0.7.tar.gz'
Content type 'application/x-gzip' length 26206 bytes (25 KB)
==================================================
downloaded 25 KB

trying URL 'https://cran.rstudio.com/src/contrib/memoise_2.0.1.tar.gz'
Content type 'application/x-gzip' length 17852 bytes (17 KB)
==================================================
downloaded 17 KB

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

trying URL 'https://cran.rstudio.com/src/contrib/fastmap_1.1.1.tar.gz'
Content type 'application/x-gzip' length 46412 bytes (45 KB)
==================================================
downloaded 45 KB

trying URL 'https://cran.rstudio.com/src/contrib/highr_0.10.tar.gz'
Content type 'application/x-gzip' length 15084 bytes (14 KB)
==================================================
downloaded 14 KB

trying URL 'https://cran.rstudio.com/src/contrib/bslib_0.4.2.tar.gz'
Content type 'application/x-gzip' length 4830133 bytes (4.6 MB)
==================================================
downloaded 4.6 MB

trying URL 'https://cran.rstudio.com/src/contrib/htmltools_0.5.4.tar.gz'
Content type 'application/x-gzip' length 131047 bytes (127 KB)
==================================================
downloaded 127 KB

trying URL 'https://cran.rstudio.com/src/contrib/knitr_1.42.tar.gz'
Content type 'application/x-gzip' length 893585 bytes (872 KB)
==================================================
downloaded 872 KB

trying URL 'https://cran.rstudio.com/src/contrib/tinytex_0.44.tar.gz'
Content type 'application/x-gzip' length 32980 bytes (32 KB)
==================================================
downloaded 32 KB

trying URL 'https://cran.rstudio.com/src/contrib/xfun_0.37.tar.gz'
Content type 'application/x-gzip' length 130063 bytes (127 KB)
==================================================
downloaded 127 KB

trying URL 'https://cran.rstudio.com/src/contrib/rmarkdown_2.20.tar.gz'
Content type 'application/x-gzip' length 3243512 bytes (3.1 MB)
==================================================
downloaded 3.1 MB

* installing *source* package 'rlang' ...
** package 'rlang' successfully unpacked and MD5 sums checked
** libs

*** arch - i386
Warning: running command 'make -f "Makevars" -f "C:/PROGRA~1/R/R-34~1.2/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-34~1.2/share/make/winshlib.mk" CXX='$(CXX11) $(CXX11STD)' CXXFLAGS='$(CXX11FLAGS)' CXXPICFLAGS='$(CXX11PICFLAGS)' SHLIB_LDFLAGS='$(SHLIB_CXX11LDFLAGS)' SHLIB_LD='$(SHLIB_CXX11LD)' SHLIB="rlang.dll" OBJECTS="capture.o internal.o rlang-rcc.o rlang.o version.o"' had status 127
ERROR: compilation failed for package 'rlang'
* removing 'C:/Users/A342709/OneDrive/R/win-library/3.4/rlang'
* restoring previous 'C:/Users/A342709/OneDrive/R/win-library/3.4/rlang'
* installing *source* package 'fastmap' ...
** package 'fastmap' successfully unpacked and MD5 sums checked
** libs

*** arch - i386
Warning: running command 'make -f "Makevars.win" -f "C:/PROGRA~1/R/R-34~1.2/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-34~1.2/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="fastmap.dll" OBJECTS="fastmap.o init.o"' had status 127
ERROR: compilation failed for package 'fastmap'
* removing 'C:/Users/A342709/OneDrive/R/win-library/3.4/fastmap'
* installing *source* package 'xfun' ...
** package 'xfun' successfully unpacked and MD5 sums checked
** libs

*** arch - i386
Warning: running command 'make -f "C:/PROGRA~1/R/R-34~1.2/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-34~1.2/share/make/winshlib.mk" SHLIB="xfun.dll" OBJECTS="base64.o init.o"' had status 127
ERROR: compilation failed for package 'xfun'
* removing 'C:/Users/A342709/OneDrive/R/win-library/3.4/xfun'
ERROR: dependency 'fastmap' is not available for package 'cachem'
* removing 'C:/Users/A342709/OneDrive/R/win-library/3.4/cachem'
ERROR: dependency 'xfun' is not available for package 'highr'
* removing 'C:/Users/A342709/OneDrive/R/win-library/3.4/highr'
ERROR: dependency 'fastmap' is not available for package 'htmltools'
* removing 'C:/Users/A342709/OneDrive/R/win-library/3.4/htmltools'
ERROR: dependency 'xfun' is not available for package 'tinytex'
* removing 'C:/Users/A342709/OneDrive/R/win-library/3.4/tinytex'
ERROR: dependency 'htmltools' is not available for package 'sass'
* removing 'C:/Users/A342709/OneDrive/R/win-library/3.4/sass'
ERROR: dependency 'cachem' is not available for package 'memoise'
* removing 'C:/Users/A342709/OneDrive/R/win-library/3.4/memoise'
ERROR: dependencies 'highr', 'xfun' are not available for package 'knitr'
* removing 'C:/Users/A342709/OneDrive/R/win-library/3.4/knitr'
ERROR: dependencies 'htmltools', 'sass', 'cachem', 'memoise' are not available for package 'bslib'
* removing 'C:/Users/A342709/OneDrive/R/win-library/3.4/bslib'
ERROR: dependencies 'bslib', 'htmltools', 'knitr', 'tinytex', 'xfun' are not available for package 'rmarkdown'
* removing 'C:/Users/A342709/OneDrive/R/win-library/3.4/rmarkdown'

The downloaded source packages are in
	'C:\Users\A342709\AppData\Local\Temp\Rtmp4Qcyik\downloaded_packages'


<U+2714> Packages successfully installed.
There were 46 warnings (use warnings() to see them)


If you run

install.packages("xfun")

are you given the opportunity to decline installation of the source version and install the binary version? If so pick the binary version.
What version of R are you running? You can see that by running

sessionInfo()

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.