0

I am currently using RStudio for R right now. I am trying to use the broom::tidy function but am unable to install the broom package.

install.packages("broom") 

generates the error:

ERROR: dependency ‘nlme’ is not available for package ‘psych’ * removing ‘/home/gherr/R/x86_64-pc-linux-gnu-library/3.2/psych’ Warning in install.packages : installation of package ‘psych’ had non-zero exit status ERROR: dependencies ‘psych’, ‘nlme’ are not available for package ‘broom’ * removing ‘/home/gherr/R/x86_64-pc-linux-gnu-library/3.2/broom’ Warning in install.packages : installation of package ‘broom’ had non-zero exit status The downloaded source packages are in ‘/tmp/RtmpwPtSkh/downloaded_packages’

install.packages("nlme")

generates this error:

Installing package into ‘/home/gherr/R/x86_64-pc-linux-gnu-library/3.2’ (as ‘lib’ is unspecified) Warning in install.packages : package ‘nlme’ is not available (for R version 3.2.3)

It appears that I am only unable to install the 'nlme' package and the other two installs are failing because it is a dependency.

Steffen Moritz
  • 7,277
  • 11
  • 36
  • 55
rebeccah
  • 1
  • 3
  • 1
    Your R version is fairly old. Are you able to update it? – joran May 01 '18 at 21:31
  • You can try: install.packages("broom", dependencies = TRUE). – DJV May 01 '18 at 21:51
  • Your diagnosis is correct; you can't install nlme, because your R version is too old to support it. You need to upgrade [to R >= 3.4.0](https://cran.r-project.org/web/packages/nlme/). – neilfws May 01 '18 at 21:58
  • Or install an older version of `nlme` from its [archive directory](https://cloud.r-project.org/src/contrib/Archive/nlme/). Or, if you're on Ubuntu or Debian, install the prebuilt r-cran-nlme. It could still be that broom wants a different version... – Dirk Eddelbuettel May 01 '18 at 22:02
  • I just installed version 3.4.4 but am unable to switch RStudio to use it instead of the 3.2.3. I installed broom successfully once I was in the new version so I just need to switch my RStudio Preferences. – rebeccah May 01 '18 at 22:04

0 Answers0