The command library(xlsx) reliably gives me the "R session aborted" alert. This never used to happen.
I am running Windows 10 and R 4.2 and the latest version of RStudio. I did have a fairly recent Java update installed and am running the most recent version of Java. I did remove the xlsx package and reinstalled it. No difference.