Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Scatterplot tool - R.exe exit code indicated an error

hdesai7
8 - Asteroid

Hello,

 

The scatterplot tools that are a part of my workflow are not working. They throw out a R.exe exit code error. To see if something was wrong with my data, I tried to check the official Alteryx scatterplot example. However, even this example isn’t working and giving the same error upon running the workflow. So, there seems to be nothing wrong with my data as the offiical Alteryx example also isn't working. 

 

I found some more information on this error in the Alteryx Community, and it seems to be experienced by quite a few people. The experts are saying it’s a fake error and can be resolved by ending the R-code with a gc() function. However, I couldn't find appropriate steps to take to go ahead with it.

 

knowledge.alteryx.com/index/s/article/Error-The-R-exe-exit-code-n-indicated-an-error 

community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/R-tool-Fake-Errors/td-p/25163 

 

Could someone give step-by-step instructions on how to add a gc() function to the R-code for the Scatterplot tool? I found this part extremely complicated and didn't know how to go about it. 

 

Screenshot 2023-09-22 at 9.53.45 PM.png

 

FYI - I use Alteryx on my Mac with Parallels since the Designer cloud platform doesn't have any Data investigation tools yet.

Alteryx version: Admin 2022.1, Predictive tool package for the same version has been installed.

 

18 REPLIES 18
caltang
17 - Castor
17 - Castor

The link you sent: https://knowledge.alteryx.com/index/s/article/Error-The-R-exe-exit-code-n-indicated-an-error

 

If you scroll down, you can see that if a tool has the R Tool logo on the bottom left indicates that it has R behind the scenes. Right click on your tool and click on Open Macro like so:

 

image.png

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
caltang
17 - Castor
17 - Castor

If you scroll down from there, you can see the R Tool backing this Scatterplot tool.

image.png

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
hdesai7
8 - Asteroid

@caltang, yes I opened the Macro. But, how to add the gc() function to the R-code? Where do you input that? Thanks for your help.

hdesai7
8 - Asteroid

@caltangI found the R tool below. Where do I include gc()?

I tried to include it at the end. But, it's not working when I reran the workflow.

 

Screenshot 2023-09-23 at 2.01.50 AM.png

caltang
17 - Castor
17 - Castor

You're right. you can include gc() at the end, then save the workflow. Go back to your original workflow, and your Scatterplot should work.

 

Don't run the workflow on the macro workflow - run it on your mainworkflow before you opened the macro. Make sure you saved your changes!

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
hdesai7
8 - Asteroid

@caltang I am unable to save the .yxmc workflow when I include gc() at the end. See the message I get when I try to save it. It says Access to path is denied. Do you have a suggestion on how I can save it?

 

Screenshot 2023-09-23 at 2.16.40 AM.png

caltang
17 - Castor
17 - Castor

Did you download the R Tools using admin installer or non-admin installer? In addition, are you on your company machine or personal machine?

 

Depending on your answer, the resolution can be quite different.

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
hdesai7
8 - Asteroid

@caltang admin installer. I am on a personal machine.

caltang
17 - Castor
17 - Castor

Okay - then follow this:

 

As per this: https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/R-tool-is-not-added/td-p/82289 

If you installed admin version of alteryx: C:\Program Files\Alteryx\Settings\AdditionalPlugins 
If you installed non-admin version of alteryx: C:\Users\<<USERID>>\AppData\Local\Alteryx\Settings\AdditionalPlugins

 This is where you can find your path:

image.png

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Labels
Top Solution Authors