Não consigo instalar o tidyverse

estou utilizando essa linha de código no r studio
install.packages("tidverse", dependencies = TRUE)

estou recebendo essa mensagem do console
Warning in install.packages :
package ‘tidverse’ is not available for this version of R

A version of this package for your version of R might be available elsewhere,
see the ideas at

como faço para obter sucesso na instalação desse pacote "tidyverse" ??

Hi @rozangela, see the correct letters in tydiverse because the name is tidyverse

Run this:

install.packages("tidyverse", dependencies = TRUE)
1 Like

Olá M_AcostaCH, obrigada por me ajudar, corrigi o meu erro e utilizei o que o senhor me disponibilizou, contudo estou recebendo essa mensagem do console quando insiro a linha de código e faço a chamada do pacote:

ERROR: dependencies ‘googledrive’, ‘googlesheets4’, ‘httr’, ‘ragg’, ‘rvest’, ‘xml2’ are not available for package ‘tidyverse’

  • removing ‘/home/rozangela/R/x86_64-pc-linux-gnu-library/4.1/tidyverse’
    Warning in install.packages :
    installation of package ‘tidyverse’ had non-zero exit status

The downloaded source packages are in
‘/tmp/Rtmpb9dCe2/downloaded_packages’

library(tidyverse)
Error in library(package, pos = pos, lib.loc = lib.loc, character.only = TRUE, :
there is no package called ‘tidyverse’

OBS: sou iniciante no R Studio e ainda não sei mexer corretamente, fico grata se o senhor puder me auxiliar nessa questão.

What R and Rstudio version you have?
This error is because you need install multiple dependences.

# Install missing dependencies
install.packages(c("googledrive", "googlesheets4", "httr", "ragg", "rvest", "xml2"))

install.packages("tidyverse")
1 Like

A minha versão é "2023.09.1 Build 494".
tentei instalar as múltiplas dependência e o retorno das duas linhas de código foram:

The downloaded source packages are in
‘/tmp/Rtmpb9dCe2/downloaded_packages’

E quando chamo o pacote o console retorna isso:

library(tidyverse)
Error in library(package, pos = pos, lib.loc = lib.loc, character.only = TRUE, :
there is no package called ‘tidyverse’

Será que eu deveria desinstalar e reinstalar o R Studio ?

Are you sure that install tidyverse?

Maybe in final case and for get an easy solution, remove R and Rstudio and install.

1 Like

Certo, irei fazer isso. Obrigada pela ajuda

I think the problem is that some packages failed to install because of missing system requirements or compilers. What kind of Linux do you have?

If you have a Linux distro that is supported by pak, you can check the system requirements with:

install.packages("pak", repos = sprintf(
  "https://r-lib.github.io/p/pak/stable/%s/%s/%s",
  .Platform$pkgType,
  R.Version()$os,
  R.Version()$arch
))
pak::pkg_sysreqs("tidyverse")

Then you need to install these system packages with your distro's package manager, e.g. apt-get or dnf, as suggested by pak. E.g. on Ubuntu 22.04 I get:

── Install scripts ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Ubuntu 22.04 ──
apt-get -y update
apt-get -y install libcurl4-openssl-dev libssl-dev zlib1g-dev make pandoc libfreetype6-dev libjpeg-dev libpng-dev libtiff-dev libicu-dev libfontconfig1-dev libfribidi-dev libharfbuzz-dev libxml2-dev
2 Likes

Olá Gabor, eu uso o Linux Ubuntu 22.04.3 LTS Jammy.

Then run those apt-get ... commands. You might need to run them with sudo:

sudo apt-get -y update
sudo apt-get -y install ...

and then try to install tidyverse again.

Fiz como o senhor aconselhou, mas quando vou fazer a instalação do tidyverse não funciona. Linhas do código
install.packages("pak", repos = sprintf(
"https://r-lib.github.io/p/pak/stable/%s/%s/%s",
.Platform$pkgType,
R.Version()$os,
R.Version()$arch
))
pak::pkg_sysreqs("tidyverse")

Retorno do console:

downloaded 7.6 MB

  • installing binary package ‘pak’ ...
  • DONE (pak)
    The downloaded source packages are in
    ‘/tmp/RtmpfQT8F5/downloaded_packages’

Tentei utilizar essa outra linha de código:

install.packages("tidyverse", dependencies = TRUE)
library(tidyverse)

Retorno do console:

Warning in install.packages :
installation of package ‘tidyverse’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpfQT8F5/downloaded_packages’

library(tidyverse)
Error in library(tidyverse) : there is no package called ‘tidyverse’

No, run the apt-get commands, possibly with sudo:

Then try to install tidyverse.

2 Likes

Muito obrigada Gabor, sem a sua ajuda não saberia como resolver esse problema. Estou muito agradecida e finalmente o tidyverse foi instalado e esta funcionando.

This topic was automatically closed 7 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.