So I have followed these instructions here:
https://medium.com/analytics-vidhya/how-to-install-roracle-on-windows-10-144b0b923dac
Effectively install the thin client, set environment variables...then download ROracle 64 bit for windows and run the following in R:
setwd("C:/Users/MyName/Downloads")
install.packages("ROracle_1.3-2.zip",repos = NULL)
install.packages("DBI")
library("DBI")
library("ROracle")
And I am getting this error:
source("~/.active-rstudio-document")
Installing package into ‘C:/Users/MyName/AppData/Local/R/win-library/4.2’
(as ‘lib’ is unspecified)
package ‘ROracle’ successfully unpacked and MD5 sums checked
Error in install.packages : package ‘ROracle’ not installed because it is not built for UCRT
Installing package into ‘C:/Users/MyName/AppData/Local/R/win-library/4.2’
R is certainly proving more tricky than Python. This is solved with "pip install cx_Oracle".
As you can see at the CRAN package page for ROracle are no pre-made binaries available: not for Windows, not for macOS, not for macOS-Arm64.
You attempted to install an different version, and the error message tells you in clear terms that is not suitable for the current R version on Windows which has switched (as of R 4.2.0 in April) to UCRT builds in order to support utf-8 better on Windows. (There has been ample documentation on the underlying details at the R developer blog.)
The version you have seems to have been built for the previous version so if you need it badly, maybe downgrading to R 4.1.* is an option for you. Otherwise maybe you can get the good folks behind the database system you want to use to build you an updated version for the current R, or maybe attempt to do it yourself.