Whenever I try to make a JDBC object:
jdbcDriver <- JDBC(driverClass="oracle.jdbc.OracleDriver",
classPath="~/ojdbc6.jar")
My RStudio immediately crashes with no warning with this popup
However, the code works perfectly in the terminal R environment outside of RStudio, so I am certain it is an RStudio issue.
OS: Mac OS High Sierra 10.13.6
latest version of RStudio (1.1.456) and R (3.5.1).
JDK version 1.8.0_191
Using ojdbc6.jar

rJavafor a while ... but here's a thought: take a look at the (verbose) output ofSys.getenv()both in and out of RStudio to see if you can find distinct differences. Perhaps:e <- Sys.getenv(); writeLines(paste(names(e), e, sep="|"), "file1");, repeat in the other platform intofile2, then on the terminal/command-linej typediff file1 file2(in the correct directory). It might give you an indication if an env var is "different-enough".odbcpackage spins forever in RStudio. But placingoptions(connectionObserver = NULL)at the very top of script to avoid getting connection data for all its 500+ system tables, eliminated that problem for me.