I was able to reproduce this problem and found a fix. It looks like tabulizer
and the rJava
package it uses do not work well with Java versions past 11.
If you are using a Mac you can install Java 11 even if you've already installed a later version via this link:
Once you have Java 11 installed, before you load the tabulizer
library, you need to let R know to use the Java 11 installation. The code below will do this:
Sys.setenv(JAVA_HOME='/Library/Java/JavaVirtualMachines/jdk-11.0.9.jdk/Contents/Home')
library(tabulizer)
This should prevent RStudio from crashing.