Can't Install Tidyverse on Chromebook

Any suggestions? On my Chromebook I get a lot of error messages and statements not allowing me to download it. It downloads a good amount of the packages, but for example, package "shiny" doesn't get installed.

Hi, welcome to the forum.

We need a the output that you are getting.

Can you copy it and paste it here between
```

```

Thanks

Yeah my issue is it wouldn't let me post more than two links.

> install.packages("tidyverse")
Installing package into ‘/home/s5carlson/R/x86_64-pc-linux-gnu-library/4.2’
(as ‘lib’ is unspecified)
also installing the dependencies ‘gargle’, ‘curl’, ‘ids’, ‘openssl’, ‘systemfonts’, ‘textshaping’, ‘googledrive’, ‘googlesheets4’, ‘httr’, ‘ragg’, ‘rvest’, ‘xml2’

trying URL 'https://cloud.r-project.org/src/contrib/gargle_1.5.2.tar.gz'
Content type 'application/x-gzip' length 627560 bytes (612 KB)
==================================================
downloaded 612 KB

trying URL 'https://cloud.r-project.org/src/contrib/curl_5.0.2.tar.gz'
Content type 'application/x-gzip' length 714170 bytes (697 KB)
==================================================
downloaded 697 KB

trying URL 'https://cloud.r-project.org/src/contrib/ids_1.0.1.tar.gz'
Content type 'application/x-gzip' length 91213 bytes (89 KB)
==================================================
downloaded 89 KB

trying URL 'https://cloud.r-project.org/src/contrib/openssl_2.1.0.tar.gz'
Content type 'application/x-gzip' length 1203157 bytes (1.1 MB)
==================================================
downloaded 1.1 MB

trying URL 'https://cloud.r-project.org/src/contrib/systemfonts_1.0.4.tar.gz'
Content type 'application/x-gzip' length 81757 bytes (79 KB)
==================================================
downloaded 79 KB

trying URL 'https://cloud.r-project.org/src/contrib/textshaping_0.3.6.tar.gz'
Content type 'application/x-gzip' length 35722 bytes (34 KB)
==================================================
downloaded 34 KB

trying URL 'https://cloud.r-project.org/src/contrib/googledrive_2.1.1.tar.gz'
Content type 'application/x-gzip' length 1609266 bytes (1.5 MB)
==================================================
downloaded 1.5 MB

trying URL 'https://cloud.r-project.org/src/contrib/googlesheets4_1.1.1.tar.gz'
Content type 'application/x-gzip' length 232584 bytes (227 KB)
==================================================
downloaded 227 KB

trying URL 'https://cloud.r-project.org/src/contrib/httr_1.4.7.tar.gz'
Content type 'application/x-gzip' length 118500 bytes (115 KB)
==================================================
downloaded 115 KB

trying URL 'https://cloud.r-project.org/src/contrib/ragg_1.2.5.tar.gz'
Content type 'application/x-gzip' length 427859 bytes (417 KB)
==================================================
downloaded 417 KB

trying URL 'https://cloud.r-project.org/src/contrib/rvest_1.0.3.tar.gz'
Content type 'application/x-gzip' length 94659 bytes (92 KB)
==================================================
downloaded 92 KB

trying URL 'https://cloud.r-project.org/src/contrib/xml2_1.3.5.tar.gz'
Content type 'application/x-gzip' length 272664 bytes (266 KB)
==================================================
downloaded 266 KB

trying URL 'https://cloud.r-project.org/src/contrib/tidyverse_2.0.0.tar.gz'
Content type 'application/x-gzip' length 704618 bytes (688 KB)
==================================================
downloaded 688 KB

* installing *source* package ‘curl’ ...
** package ‘curl’ successfully unpacked and MD5 sums checked
** using staged installation
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lcurl
--------------------------- [ANTICONF] --------------------------------
Configuration failed because libcurl was not found. Try installing:
 * deb: libcurl4-openssl-dev (Debian, Ubuntu, etc)
 * rpm: libcurl-devel (Fedora, CentOS, RHEL)
If libcurl is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libcurl.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
-------------------------- [ERROR MESSAGE] ---------------------------
<stdin>:1:10: fatal error: curl/curl.h: No such file or directory
compilation terminated.
--------------------------------------------------------------------
ERROR: configuration failed for package ‘curl’
* removing ‘/home/s5carlson/R/x86_64-pc-linux-gnu-library/4.2/curl’
Warning in install.packages :
  installation of package ‘curl’ had non-zero exit status
* installing *source* package ‘openssl’ ...
** package ‘openssl’ successfully unpacked and MD5 sums checked
** using staged installation
Using PKG_CFLAGS=
--------------------------- [ANTICONF] --------------------------------
Configuration failed because openssl was not found. Try installing:
 * deb: libssl-dev (Debian, Ubuntu, etc)
 * rpm: openssl-devel (Fedora, CentOS, RHEL)
 * csw: libssl_dev (Solaris)
 * brew: openssl (Mac OSX)
If openssl is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a openssl.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
-------------------------- [ERROR MESSAGE] ---------------------------
tools/version.c:1:10: fatal error: openssl/opensslv.h: No such file or directory
    1 | #include <openssl/opensslv.h>
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
--------------------------------------------------------------------
ERROR: configuration failed for package ‘openssl’
* removing ‘/home/s5carlson/R/x86_64-pc-linux-gnu-library/4.2/openssl’
Warning in install.packages :
  installation of package ‘openssl’ had non-zero exit status
* installing *source* package ‘systemfonts’ ...
** package ‘systemfonts’ successfully unpacked and MD5 sums checked
** using staged installation
Package fontconfig was not found in the pkg-config search path.
Perhaps you should add the directory containing `fontconfig.pc'
to the PKG_CONFIG_PATH environment variable
No package 'fontconfig' found
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'freetype2' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lfontconfig -lfreetype
--------------------------- [ANTICONF] --------------------------------
Configuration failed to find the fontconfig freetype2 library. Try installing:
 * deb: libfontconfig1-dev (Debian, Ubuntu, etc)
 * rpm: fontconfig-devel (Fedora, EPEL)
 * csw: fontconfig_dev (Solaris)
 * brew: freetype (OSX)
If fontconfig freetype2 is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a fontconfig freetype2.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
-------------------------- [ERROR MESSAGE] ---------------------------
<stdin>:1:10: fatal error: fontconfig/fontconfig.h: No such file or directory
compilation terminated.
--------------------------------------------------------------------
ERROR: configuration failed for package ‘systemfonts’
* removing ‘/home/s5carlson/R/x86_64-pc-linux-gnu-library/4.2/systemfonts’
Warning in install.packages :
  installation of package ‘systemfonts’ had non-zero exit status
* installing *source* package ‘xml2’ ...
** package ‘xml2’ successfully unpacked and MD5 sums checked
** using staged installation
Package libxml-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libxml-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libxml-2.0' found
Package libxml-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libxml-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libxml-2.0' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lxml2
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because libxml-2.0 was not found. Try installing:
 * deb: libxml2-dev (Debian, Ubuntu, etc)
 * rpm: libxml2-devel (Fedora, CentOS, RHEL)
 * csw: libxml2_dev (Solaris)
If libxml-2.0 is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libxml-2.0.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
--------------------------------------------------------------------
ERROR: configuration failed for package ‘xml2’
* removing ‘/home/s5carlson/R/x86_64-pc-linux-gnu-library/4.2/xml2’
Warning in install.packages :
  installation of package ‘xml2’ had non-zero exit status
ERROR: dependency ‘openssl’ is not available for package ‘ids’
* removing ‘/home/s5carlson/R/x86_64-pc-linux-gnu-library/4.2/ids’
Warning in install.packages :
  installation of package ‘ids’ had non-zero exit status
ERROR: dependency ‘systemfonts’ is not available for package ‘textshaping’
* removing ‘/home/s5carlson/R/x86_64-pc-linux-gnu-library/4.2/textshaping’
Warning in install.packages :
  installation of package ‘textshaping’ had non-zero exit status
ERROR: dependencies ‘curl’, ‘openssl’ are not available for package ‘httr’
* removing ‘/home/s5carlson/R/x86_64-pc-linux-gnu-library/4.2/httr’
Warning in install.packages :
  installation of package ‘httr’ had non-zero exit status
ERROR: dependencies ‘httr’, ‘openssl’ are not available for package ‘gargle’
* removing ‘/home/s5carlson/R/x86_64-pc-linux-gnu-library/4.2/gargle’
Warning in install.packages :
  installation of package ‘gargle’ had non-zero exit status
ERROR: dependencies ‘systemfonts’, ‘textshaping’ are not available for package ‘ragg’
* removing ‘/home/s5carlson/R/x86_64-pc-linux-gnu-library/4.2/ragg’
Warning in install.packages :
  installation of package ‘ragg’ had non-zero exit status
ERROR: dependencies ‘httr’, ‘xml2’ are not available for package ‘rvest’
* removing ‘/home/s5carlson/R/x86_64-pc-linux-gnu-library/4.2/rvest’
Warning in install.packages :
  installation of package ‘rvest’ had non-zero exit status
ERROR: dependencies ‘gargle’, ‘httr’ are not available for package ‘googledrive’
* removing ‘/home/s5carlson/R/x86_64-pc-linux-gnu-library/4.2/googledrive’
Warning in install.packages :
  installation of package ‘googledrive’ had non-zero exit status
ERROR: dependencies ‘curl’, ‘gargle’, ‘googledrive’, ‘httr’, ‘ids’ are not available for package ‘googlesheets4’
* removing ‘/home/s5carlson/R/x86_64-pc-linux-gnu-library/4.2/googlesheets4’
Warning in install.packages :
  installation of package ‘googlesheets4’ had non-zero exit status
ERROR: dependencies ‘googledrive’, ‘googlesheets4’, ‘httr’, ‘ragg’, ‘rvest’, ‘xml2’ are not available for package ‘tidyverse’
* removing ‘/home/s5carlson/R/x86_64-pc-linux-gnu-library/4.2/tidyverse’
Warning in install.packages :
  installation of package ‘tidyverse’ had non-zero exit status

The downloaded source packages are in
	‘/tmp/RtmpuRGCft/downloaded_packages’
> 

This is everything that pops up after trying to install Tidyverse on my chromebook

It looks like you need to install libcurl4-openssl-dev and libssl-dev at system's level if a Mac is Debian based going from error messages like this:

Configuration failed because libcurl was not found. Try installing:
 * deb: libcurl4-openssl-dev (Debian, Ubuntu, etc)
 * rpm: libcurl-devel (Fedora, CentOS, RHEL)

Nothing came up when I did that, unless I am doing it wrong.

I am also using a HP Chromebook

No idea about HP's

but did you do

sudo apt install libcurl4-openssl-dev

Doing that I was able to get both of my missing errors, but it still will not install

What, if any, error messages are you getting?

ERROR: configuration failed for package ‘xml2’ * removing ‘/home/s5carlson/R/x86_64-pc-linux-gnu-library/4.2/xml2’ Warning in install.packages : installation of package ‘xml2’ had non-zero exit status ERROR: dependency ‘systemfonts’ is not available for package ‘textshaping’ * removing ‘/home/s5carlson/R/x86_64-pc-linux-gnu-library/4.2/textshaping’ Warning in install.packages : installation of package ‘textshaping’ had non-zero exit status ERROR: dependency ‘xml2’ is not available for package ‘rvest’ * removing ‘/home/s5carlson/R/x86_64-pc-linux-gnu-library/4.2/rvest’ Warning in install.packages : installation of package ‘rvest’ had non-zero exit status ERROR: dependencies ‘systemfonts’, ‘textshaping’ are not available for package ‘ragg’ * removing ‘/home/s5carlson/R/x86_64-pc-linux-gnu-library/4.2/ragg’ Warning in install.packages : installation of package ‘ragg’ had non-zero exit status ERROR: dependencies ‘ragg’, ‘rvest’, ‘xml2’ are not available for package ‘tidyverse’ * removing ‘/home/s5carlson/R/x86_64-pc-linux-gnu-library/4.2/tidyverse’ Warning in install.packages : installation of package ‘tidyverse’ had non-zero exit status The downloaded source packages are in ‘/tmp/RtmpegzMYA/downloaded_packages’

What if you try installing the various component packages of {tidyverse}?

I seem to remember having to do something like that two or three years ago.

IIRC the basic set of packages are
lubridate forcats stringr dplyr purrr readr tidyr tibble ggplot2 tidyverse

You could try something like

install.packages("dplyr")

and see what happens.

ERROR: configuration failed for package "xml2" removing '/home/s5carlson/R/x86_64-pc-linux-gnu-library/4.2/xml2'

ERROR: dependency 'systemfonts' is not available for package 'textshaping' removing '/home/s5carlson/R/x86_64-pc-linux-gnu-library/4.2/textshaping'

ERROR: dependency 'xml2' is not available for package 'rvest' removing '/home/s5carlson/R/x86_64-pc-linux-gnu-library/4.2/rvest'

ERROR: dependencies 'systemfonts', 'textshaping' are not available for package 'ragg' removing '/home/s5carlson/R/x86_64-pc-linux-gnu-library/4.2/ragg'

ERROR: dependencies 'ragg', 'rvest', 'xml2' are not available for package 'tidyverse' removing '/home/s5carlson/R/x86_64-pc-linux-gnu-library/4.2/tidyverse'

this is actually how it looks. I apologize about that

that package did go through

I have no idea why it's not working but you can probably just install each individual package separately, adding in those dependencies such as {xml2} or {textshaping} as you go along.

It's long and tedious but should give you the functionality you want.

I'm sorry not to be of more help.

BTW what OS?

ChromeOS

If I wanted to download the ones that didn't download, it would only be those 4 and I would just do

install.package("xml2") and so on

I had originally posted to this asking for help with the same issue on ChromeOS crostini, but I had figured out my issue and my issue was that I didn't read the error output.

Installing all the dependencies it asked for using the command line fixed my issue.

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.