报错:java.lang.OutOfMemoryError: Java heap space in r
解决方法:在运行R包之前运行该代码以提高JVM heap size
options(java.parameters = "-Xmx1024m")
可能原因:The default heap size for libraries that rely on rJava is 512MB. It is relatively easy to exceed this maximum size.
参考资料:Snowflake Community