Trouble installing package "RODBC"

I am trying to install a package called RODBC in R but I am having a lot of trouble with it.

If I try and install the package like normal I get the following error.

install.packages("RODBC")
Warning in install.packages :
  package ‘RODBC’ is not available (for R version 3.6.3)

Googling around hasn't revealed anything in the way of documentation for installing it in a different way. And a lot of the common fixes (Spelling, changing CRAN mirror etc.) also haven't helped.

The only other thing I did find was another package called RODBCDBI which I also tried but it depends on this RODBC package.

install.packages("RODBCDBI")
Warning in install.packages :
  dependency ‘RODBC’ is not available

Does anyone have any ideas? Unfortunately, just finding an alternative package isn't really an option as I am using someone elses code which I can't really change or modify so I really need to be able to get it to run.

For reference, here is a link to the package CRAN - Package RODBC and from what I can tell it is still being actively updated, so it should still be fine to use.

The link you posted gives you the answer: RODBC depends on R >=4.0.0.

You either need to upgrade your version of R or install an earlier version of RODBC:
https://cran.r-project.org/src/contrib/Archive/RODBC/

1 Like

Thanks very much! I didn't spot that on the docs

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.