Hello Everyone,
I am currently not able to run R Snippets with the following error and I am not sure how to solve it.
Please let me know if you have any suggestions/ideas how to resolve the issue.
R cannot be initialized.
XQuartz is required for the Cairo library on MacOS. Please download and install XQuartz from http://www.xquartz.org/.
KNIME log:
2020-07-17 13:00:24,094 : ERROR : KNIME-Worker-4-R Source (Workspace) 0:248 : : Node : R Source (Workspace) : 0:248 : Execute failed: XQuartz is required for the Cairo library on MacOS. Please download and install XQuartz from http://www.xquartz.org/.
org.knime.r.controller.IRController$RException: XQuartz is required for the Cairo library on MacOS. Please download and install XQuartz from http://www.xquartz.org/.
at org.knime.r.controller.RController.checkCairoOnMac(RController.java:406)
at org.knime.r.controller.RController.initR(RController.java:329)
at org.knime.r.controller.RController.initialize(RController.java:195)
at org.knime.r.controller.RController.(RController.java:167)
at org.knime.r.RSnippetNodeModel.executeInternal(RSnippetNodeModel.java:145)
at org.knime.r.RSnippetNodeModel.execute(RSnippetNodeModel.java:136)
at org.knime.core.node.NodeModel.executeModel(NodeModel.java:571)
at org.knime.core.node.Node.invokeFullyNodeModelExecute(Node.java:1236)
at org.knime.core.node.Node.execute(Node.java:1016)
at org.knime.core.node.workflow.NativeNodeContainer.performExecuteNode(NativeNodeContainer.java:557)
at org.knime.core.node.exec.LocalNodeExecutionJob.mainExecute(LocalNodeExecutionJob.java:95)
at org.knime.core.node.workflow.NodeExecutionJob.internalRun(NodeExecutionJob.java:218)
at org.knime.core.node.workflow.NodeExecutionJob.run(NodeExecutionJob.java:124)
at org.knime.core.util.ThreadUtils$RunnableWithContextImpl.runWithContext(ThreadUtils.java:334)
at org.knime.core.util.ThreadUtils$RunnableWithContext.run(ThreadUtils.java:210)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.knime.core.util.ThreadPool$MyFuture.run(ThreadPool.java:123)
at org.knime.core.util.ThreadPool$Worker.run(ThreadPool.java:246)
R scripting extension is installed:
KNIME R Scripting extension 4.0.0.v201906200740 de.mpicbg.tds.knime.scripting.r.feature.feature.group Max Planck Institute of Molecular Cell Biology and Genetics (MPI-CBG), Dresden, Germany
I tested with R 3.6.1 and later upgraded to R 4.0.2:
Path: /Library/Frameworks/R.framework/Resources
or
Path: /Library/Frameworks/R.framework/Versions/4.0/Resources
Rserve and Cairo are installed:
library(Rserve)
library(Cairo)
sessionInfo()
R version 4.0.2 (2020-06-22)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Catalina 10.15.5Matrix products: default
BLAS: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRblas.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dyliblocale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8attached base packages:
[1] stats graphics grDevices utils datasets methods baseother attached packages:
[1] Cairo_1.5-13 Rserve_1.8-7loaded via a namespace (and not attached):
[1] compiler_4.0.2 tools_4.0.2
XQuartz is installed:
XQuartz 2.7.11 (xorg-server 1.18.4)
/opt/X11/bin/xquartz
MacOS 10.15.5
KNIME 4.1.3