Hi,
I am unable to run a workflow in batch mode (Windows 11) containing a R node. The error message says it cannot find the R_HOME R-4.1.0 (see below the consolelog).
Actually I have installed R version 4.2.0 and the path in KNIME R preferences is C:\Program Files\ R\R-4.2.0.
The same workflow works well using the interface.
@alfroc these are two different paths. Have you checked the settings in KNIME? If that does not work you might want to try the environment propagation with R.
Hi @mlauber,
I set a Windows environment variable to R_HOME = C: \ Program Files \ R \ R-4.2.2, I also tried your suggestions and all the output correctly shows R-4.2.2 as root and home directory, but nothing changed.
I wonder why everything works well interactively but not in batch mode. Where could I find R-4.1.0 as R home? Hardcoded in some eclipse file? (I checked all the registers but didn’t find such value).
At this point unfortunately I have to give up… thanks anyway for your support!
Best,
Alfredo
And maybe also the idea with the Conda environment propagation (Data separate and melting - #9 by mlauber71) if that does not work. It will not be enough to have R running on the system. You will have to tell KNIME (and maybe the R node) where to find it.
Also there are two R integrations. The community one would need R(serve) to run outside before you use it. But I assume you have not used that.
Also the guide to KNIME and R is highly recommended if you have problems:
I solved the problem myself!
It is necessary to edit in the file org.knime.ext.r.bin.prefs which is in the directory C: \ Users \ (user) \ knime-workspace \ .metadata \ .plugins \ org.eclipse.core.runtime \ .settings
the R’s current home directory (in my case R-4.2.2, which was still set to R-4.1.0).
I’m still wondering why this problem only occurs in batch mode … @mlauber71