Hi, I am having some issues installing tidyverse on R Studios. I have a chromebook and was able to install R, I am also able to open datasets and use the installed packages. However, when i run the "install.package(tidyverse) an error shows up. I leave below a chunk of the error:
installing to /home/belensosa/R/aarch64-unknown-linux-gnu-library/4.2/00LOCK-haven/00new/haven/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (haven)
* installing *source* package ‘modelr’ ...
** package ‘modelr’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (modelr)
ERROR: dependencies ‘googledrive’, ‘googlesheets4’, ‘httr’, ‘ragg’, ‘rvest’, ‘xml2’ are not available for package ‘tidyverse’
* removing ‘/home/belensosa/R/aarch64-unknown-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/Rtmpf93yEq/downloaded_packages’
I don't see any error here. It seems it started downloading dependencies.
You might want to install the packages from R and not R-studio because R-studio loads some packages on start for lazy use and it could disrupt the installation.
@JonesYaniv RStudio does not load any packages on startup, so if packages are loaded at startup, they are loaded by R, from .Rprofile, most probably.
@belensosa It seems like you didn't include the part(s) of the output where the packages actually failed to install, most likely the xml2 and/or the ragg package, because these are the ones that require system packages.
Which system packages are needed depends on your Linux distribution. The pak packge (install from ) can tell you what they are, e.g. this is for Ubuntu 22.04: