Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Knowledge Base

Definitive answers from Designer Desktop experts.

R Error: Error in plot.new()

DanC
Moderator
Moderator
Created

Issue

When running custom code from the R tool, the followingR as shown below: Error in plot.new()

Error.png

Error in plot.new()

Cause

This error may occur when using the AlteryxGraph device. The reason for this is that the AlteryxGraph device creates a pipe between Alteryx and R. If creating graphs in a loop, a pipe has to be created for each loop which slows down the processing. As a result, Alteryx ends up trying to create the next graph before the previous one is completed. To avoid this, it is best practice when creating multiple graphs within a loop to keep the AlteryxGraph device statement outside of the loop.

Solution

Below is some R coding that demonstrates the cause and resolution.

AlteryxGraph inside the loop - Results in error:

x  

AlteryxGraph outside the loop - Does noterror:

x  

A big thanks to @DrDanfor his explanationand code samples.

Comments
zen_learn
5 - Atom

@DrDan, and @DanC

 

I have the following error while running the Model Comparison workflow (link: https://gallery.alteryx.com/#!app/Model-Comparison/56bbd3013df7da08b8fcd00a)

 

Note: i am using Alteryx in VirtualBox VM (Windows 10) in a Mac machine. Also, I am using Alteryx 10.6.

 

Please help. Thank you!

 

 

Picture0.png

 

Picture2.png

 

Picture1.png