# R plot error in R scripting nodes

**URL:** <https://forum.knime.com/t/r-plot-error-in-r-scripting-nodes/38245>\
**Category:** Community Extensions\
**Tags:** scripting-extensions\
**Created:** [December 15, 2021, 3:56pm UTC](https://forum.knime.com/t/r-plot-error-in-r-scripting-nodes/38245 "2021-12-15T15:56:42Z")\
**Posts on this page:** 1\
**Showing post:** 10

<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:** [December 16, 2021, 6:25am UTC](https://forum.knime.com/t/r-plot-error-in-r-scripting-nodes/38245/10 "2021-12-16T06:25:59Z")

</div>

@MikeK glad you found a solution. For the R community nodes I found it best to combine it with RSclient and control it like this. You will have to set the port in the KNIME preferences.

```auto
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)

```

> [@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

I collected some articles about KNIME and R. I typically would use the “official” version:

> **[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…

---

_[View the full topic](https://forum.knime.com/t/r-plot-error-in-r-scripting-nodes/38245)._
