Forum Discussion
R visual
Hi there
so this paragraph of the article mentions:
For Power BI Desktop has two variations for R packages:
- For R visuals, you can install any package, including custom R packages
- For Custom R visuals, only public CRAN packages are supported for auto-installation of the packages
So I have the right package installed (as i could run the sample successfully in RStudio)
However when i do this in desktop i got the error message.
There is no R custom visual Network3D to download from office store.
I downloaded other R custom visuals in the past and it worked fine e.g corrplot, decision tree fancyplot etc...
I just wonder if I have to develop Network3D of my own and import it as custom visual for this to work?
Hope this makes sense?
Many thanks
Hi Anonymous,
After research, Network3D is R package. You want to create R visual using the sample given. There are two methods.
1. You should create a resource table in Power BI desktop as follows。
Then you add a R visual, select src and target columns as values, it will generates the dataframe automatically, and you can not change it. Type the R script in the zone highlighted in green line, and click run. You will get expected result.
2. You can run r scrip in R visual, and get the data from R scrip, more details in this blog. Then create the desired visual.
Best Regards,
Angelia
- Anonymous9 years agoNot applicable
Hi there
Thats what I did - I guess I didnt realise that for this to work on PowerBI Service I need to create a custom visual myself :(
Never mind...
- v-huizhn-msft9 years agoMicrosoft Employee
Hi Anonymous,
You can create a R visual in Power BI deskyop, then publish it to service. We can not create a R visual in Power BI service.
Thanks,
Angelia