Subsections

R problems

Impossible to run R function nodes

If you are running SciCraft on Windows without a properly installed R you may get the following error message when executing an R function node: This feature is unavailable. R is either not installed or not registered in the registry. Please consult the SciCraft documentation on how to install R correctly. To fix this problem you need to ensure that R is installed and has registered its install path in the Windows registry. You have two options for solving this problem: either reinstall R and during the install, make sure you enable the option Register R path for use by (D)COM server. The second option is to create the registry key manually. This is done by placing the following in a file called e.g. register-r.reg:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\R-core]

[HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R]
"InstallPath"="C:\\Program Files\\R\\rw2001"
"Current Version"="2.0.1"
You can then execute the file. Make sure that you update this text with the correct path to your R installation.

Not enough results returned from R functions

When something is wrong with an R script you might get the following error message when you run it inside SciCraft: HCA: Expected results for 2 ports, but plugin returned 0. To see the specific error message give by R you need to enable R debugging. This is done on the preferences widget, click on the File menu and then click Preferences. It is recommended to disable this option when you are not looking for an R error.



SciCraft Development Team