Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

package ‘tidyverse’ is not available

Tags:

r

tidyverse

I am trying to install "tidyverse" and I get the below error.

install.packages("tidyverse")

package ‘tidyverse’ is available as a source package but not as a binary

Warning in install.packages :
  package ‘tidyverse’ is not available (as a binary package for R version 3.1.3)

The below is details about my Session.

sessionInfo()
R version 3.1.3 (2015-03-09)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.12.1 (unknown)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods  
[7] base     

loaded via a namespace (and not attached):
[1] tools_3.1.3

Would anyone have any idea what's missing here?

Thanks.

like image 241
poppy202 Avatar asked Mar 13 '17 02:03

poppy202


People also ask

How do I get tidyverse package in R?

Installation and useInstall all the packages in the tidyverse by running install. packages("tidyverse") . Run library(tidyverse) to load the core tidyverse and make it available in your current R session.

Why is library tidyverse not working?

If the tidyverse package doesn't load, it probably means it didn't install correctly the first time. Please rerun the package installation, then pay careful attention to the final output. If you find any errors reported in the console, please post these here, so we can help troubleshoot.


2 Answers

Did you try:

install.packages('tidyverse', dependencies=TRUE, type="source")

You may also want to try to update the version of R you are using.

like image 116
uut Avatar answered Nov 11 '22 02:11

uut


if you are using ubuntu try this and then install tidyverse again

Required for many packages

sudo apt-get install -y libxml2-dev libcurl4-openssl-dev libssl-dev

like image 33
karan Avatar answered Nov 11 '22 00:11

karan