1

I keep getting this error message when trying to run a Paired two sample correlation test in R. Message:

Error: package ‘timeDate’ required by ‘fBasics’ could not be found

I am on Mac and this happens when I try to download the fBasics package to run the test.

  • 1
    Have you tried `install.packages("timeDate")` – akrun May 01 '18 at 05:27
  • Just did and it downloaded but didnt solve the problem. Now the error message pops up saying Error: package ‘timeSeries’ required by ‘fBasics’ could not be found. I then proceeded to install that package and got this error message – Eric Desroches May 01 '18 at 05:34
  • Same thing. You have to get all the needed packages. – Elin May 01 '18 at 05:35
  • Just got this error messageError in download.file(url, destfile, method, mode = "wb", ...) : cannot open URL 'https://cran.cnr.berkeley.edu/bin/macosx/el-capitan/contrib/3.4/timeSeries_3042.102.tgz' In addition: Warning message: In download.file(url, destfile, method, mode = "wb", ...) : URL 'https://cran.cnr.berkeley.edu/bin/macosx/el-capitan/contrib/3.4/timeSeries_3042.102.tgz': status was 'Couldn't connect to server' Warning in download.packages(pkgs, destdir = tmpd, available = available, : download of package ‘timeSeries’ failed – Eric Desroches May 01 '18 at 05:35
  • Try `install.packages("fBasics", dependencies = TRUE)`. And try a different CRAN mirror if one has issues. RStudio makes this easier. – neilfws May 01 '18 at 05:39
  • That worked, thanks! – Eric Desroches May 01 '18 at 05:42

1 Answers1

0

Try to execute in your r console:

install.packages("timeDate", repos="http://R-Forge.R-project.org")
install.packages("fBasics", repos="http://R-Forge.R-project.org")

For ubuntu users, you can install with apt r-cran-fbasics and r-cran-timedate packages.

Alejandro Galera
  • 3,445
  • 3
  • 24
  • 42