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.
SOLVED

R output is not rendering with Browser/Render Tool

RobesMaGobes
5 - Atom

Hello Community,

 

I am having an issue with rendering an R tool graph using the Render tool, to be specific I'm getting no output (i.e. blank files). I was following the Alteryx blog post here

 

The flow is R Tool -> Report Text -> Render Tool. There configurations were:

 

R Tool*

library(AlteryxRviz)
library(pairsD3)

fig <- pairsD3(iris[,1:4], group = iris[,5])

renderInComposer(fig, nOutput=3)

 

Report Text:

(Chosen) Expert Mode: Treate text as Raw PCXML

(Checked) Validate PCXML

 

Render Tool:

Output Mode: Choose a Specific Output File

Output File: AbsoluteFilePath\report.html

 

I'm running Alteryx Designer version 2019.4 on Windows 10. Attached on some supplementary images.

 

 

*I also tried networkD3, rbokeh, plotly, and several other r packages.

 

Thanks

2 REPLIES 2
PaulNo
10 - Fireball

Hi @RobesMaGobes,

 

Thank for posting. 

 

I have tested on my end and I can confirm the behaviour aka report is generated correctly when output is a PCXML. Given that Ranmath's example uses PCXML, I am not sure if any output format is supported. Bear in mind that Alteryx Designer has changed quite a bit since the publication of the article in 2016.

 

As a workaround, you could save the plot into a HTML file from the R tool itself, using the pairsD3.

 

Example:

 

library(AlteryxRviz)
library(pairsD3)

fig <- pairsD3(iris[,1:4], group = iris[,5])
savePairs(fig, "D:/temp/report_r.html",selfcontained=FALSE)

renderInComposer(fig, nOutput=3)

 

Details about savePairs() are available in package documentation: https://cran.r-project.org/web/packages/pairsD3/pairsD3.pdf

 

Hope that helps.

 

Thanks,

 

PaulN

 

AlineCanard
6 - Meteoroid

I have tried "renderInComposer" output for pairsD3 and it works properly. 

Nevertheless I need to plot an interactive scatterplot. I tried with  ggplot2 + plotly  and I have an error message as follow :

"An error occured while rendering : exception parse error line : 1917 column : 129932 expected entity name for reference"

 

Can anyone help me to get an interactive plot as output, please?

Labels
Top Solution Authors