# Exit code 4 when using R node

**URL:** <https://forum.knime.com/t/exit-code-4-when-using-r-node/43497>\
**Category:** KNIME Analytics Platform\
**Created:** [May 25, 2022, 2:30pm UTC](https://forum.knime.com/t/exit-code-4-when-using-r-node/43497 "2022-05-25T14:30:51Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [May 26, 2022, 9:24pm UTC](https://forum.knime.com/t/exit-code-4-when-using-r-node/43497/5 "2022-05-26T21:24:41Z")

</div>

@thentangler I do not have a consitant guide how to obtain the batch log. You should check out some threads in the forum about that.

Currently I would assume the problem might be with the R lubridate library. What [version of R](https://kni.me/w/annQfxz-Mrtn2BNm) are you using?

You could try and use the [community R nodes](https://nodepit.com/category/community/r), but that would mean you have to have R with Rserve running when knime is being started. Never tried that with a batch system.

> **[A meta collection and article about R and KNIME – mlauber71](https://hub.knime.com/mlauber71/spaces/Public/_r_installation_on_knime_collection~tj5tS_6gYvqOSPlk/current-state)**
>
> KNIME and R — installation across operating systems — some remarks (a newly condensed article) https://medium.com/p/dcf0efdc8ddf ---------------- A meta collec…

> [@R source community node connection error](https://forum.knime.com/t/r-source-community-node-connection-error/13087/2):
>
> To use the community R source node you will have to start the RServe from R itself. Like this (you will have to have Rserve and RSclient installed): library(Rserve) library(RSclient) Rserve(port = 6311, debug = FALSE, args = “–vanilla”) # start the RServe(er) rsc \<- RSconnect(port = 6311) # shutdown the server after you used it RSshutdown(rsc) And you will have to set the preferences

---

_[View the full topic](https://forum.knime.com/t/exit-code-4-when-using-r-node/43497)._
