'Getting error while Installing Package in Jupyter Notebook, Anaconda

I am using R Language via Jupyter Notebook. I am getting trouble while installing libraries for a while.

R version 3.6.1 (2019-07-05)

Running under: macOS 10.16


also installing the dependencies ‘fs’, ‘gargle’, ‘isoband’, ‘broom’, ‘dbplyr’, ‘dplyr’, ‘dtplyr’, ‘googledrive’, ‘googlesheets4’, ‘ggplot2’, ‘haven’, ‘lubridate’, ‘readr’, ‘rvest’, ‘tidyr’, ‘xml2’

Warning message in install.packages("tidyverse", repos = "http://cran.us.r-project.org",

“installation of package ‘fs’ had non-zero exit status”Warning message in install.packages("tidyverse", repos = "http://cran.us.r-project.org", :
“installation of package ‘isoband’ had non-zero exit status”Warning message in install.packages("tidyverse", repos = "http://cran.us.r-project.org", :
“installation of package ‘dplyr’ had non-zero exit status”Warning message in install.packages("tidyverse", repos = "http://cran.us.r-project.org", :
“installation of package ‘lubridate’ had non-zero exit status”Warning message in install.packages("tidyverse", repos = "http://cran.us.r-project.org", :
“installation of package ‘readr’ had non-zero exit status”Warning message in install.packages("tidyverse", repos = "http://cran.us.r-project.org", :
“installation of package ‘xml2’ had non-zero exit status”Warning message in install.packages("tidyverse", repos = "http://cran.us.r-project.org", :
“installation of package ‘gargle’ had non-zero exit status”Warning message in install.packages("tidyverse", repos = "http://cran.us.r-project.org", :
“installation of package ‘dbplyr’ had non-zero exit status”Warning message in install.packages("tidyverse", repos = "http://cran.us.r-project.org", :
“installation of package ‘dtplyr’ had non-zero exit status”Warning message in install.packages("tidyverse", repos = "http://cran.us.r-project.org", :
“installation of package ‘ggplot2’ had non-zero exit status”Warning message in install.packages("tidyverse", repos = "http://cran.us.r-project.org", :
“installation of package ‘haven’ had non-zero exit status”Warning message in install.packages("tidyverse", repos = "http://cran.us.r-project.org", :
“installation of package ‘rvest’ had non-zero exit status”Warning message in install.packages("tidyverse", repos = "http://cran.us.r-project.org", :
“installation of package ‘tidyr’ had non-zero exit status”Warning message in install.packages("tidyverse", repos = "http://cran.us.r-project.org", :
“installation of package ‘broom’ had non-zero exit status”Warning message in install.packages("tidyverse", repos = "http://cran.us.r-project.org", :
“installation of package ‘googledrive’ had non-zero exit status”Warning message in install.packages("tidyverse", repos = "http://cran.us.r-project.org", :
“installation of package ‘googlesheets4’ had non-zero exit status”Warning message in install.packages("tidyverse", repos = "http://cran.us.r-project.org", :
“installation of package ‘tidyverse’ had non-zero exit status”Updating HTML index of packages in '.Library'
Making 'packages.html' ... done

I try to install tidyverse via terminal and it works. When I check the libraries in Anaconda Navigator interface, it looks like installed, but when I try to use

Looks like installed

library("tidyverse")

I take an error like I did not install packages after all.

I looked over the path too but it looks like okey too.

.libPaths() 

I also try to upgrade R libraries with

conda update r-caret.

but still my problem was not solved.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source