Unable to install tidyr in R version 3.1.1

12.1k views Asked by At

I am unable to install tidyr package in R version 3.1.1

This is what happens:

install.packages("tidyr")

Installing package into ‘C:/Users/Name/Documents/R/win-library/3.1’
(as ‘lib’ is unspecified)

Warning in install.packages :
  package ‘tidyr’ is not available (for R version 3.1.1)

I have a Windows PC and have just installed dplyr which got installed easily and is running smoothly.

Any ideas why this is happening as this doesn't seem to be a general issue.

3

There are 3 answers

1
mmoisse On

I think the problem lies with the newest version of dplyr (0.4.2) that requires R ≥ 3.1.2. I solved the issue by using an older version of dplyr and installing all packages from the 0-Cloud repository.

install.packages("assertthat")
install.packages("magrittr")
install.packages("lazyeval")
install.packages("BH")
install.packages("R6")
install.packages("http://cran.r-project.org/src/contrib/Archive/dplyr/dplyr_0.4.1.tar.gz", repos=NULL)
install.packages("tidyr")
0
qwerty On

I ran into this same issue using R 3.3.3. Load library(dplyr) then install.packages('tidyr').

Or

Try closing and restarting R, then give it another go.

0
Deli On

I got same Problem with DSR Package, like this:

(as ‘lib’ is unspecified) Warning in install.packages : package ‘DSR’ is not available (for R version 3.2.4 Revised)

then solved it with devtoolls.

devtools::install_github("hadley/tidyr")