Forum Discussion
Issues with R scripts in Power BI
- 4 years ago
Hi, Syndicate_Admin
Do you create visual based on this tutorial? Are you sure that the R script in the background is running?
Create Power BI visuals using R - Power BI | Microsoft Docs
Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.
Best Regards,Community Support Team _ Janey
- 4 years ago
Hi, Syndicate_Admin
Logically speaking, if the R script is successfully installed, it should be automatically generated. So I consider whether the version you installed is too high and powebi doesn't support it.
You can try to download the lower version.
Reference:
Learn which R packages are supported - Power BI | Microsoft Docs
Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.
Best Regards,Community Support Team _ Janey
Hi ,
I hope you can help me with the problem I have Re R scripting which is similar to this track
I have succesfully run many R scripts both in power Bi and the service.
My main problem is reading in RDS image file or even RDS csv compressed files in the service ..the sites are open public Github sites .. all code works in the desktop ..even reading from all the github sites IN THE VISUAL R SCRIPTS . But when I run it in the service to the same sites it keeps saying the following
with the following code in the R visual :
Error in gzfile(file, "rb") : cannot open the connection In addition: Warning message: In gzfile(file, "rb") : cannot open compressed file 'https://github.com/gbortz27/aizatron/blob/main/mytitanic.rds?raw=true', probable reason 'No such file or directory exists"
OR with this code
url4="https://github.com/gbortz27/aizatron/blob/main/mytitanic.rds?raw=true"
#data <- readRDS(url(url4, method="libcurl"))
#data=readRDS(gzcon(url(url4)))
data=read_rds(url4)
ggplot(data,aes(x=Age,y=Fare)) +geom_point()
url4="https://github.com/gbortz27/aizatron/blob/main/mytitanic.rds?raw=true"
data <- readRDS(url(url4, method="libcurl"))
#data=readRDS(gzcon(url(url4)))
#data=read_rds(url4)
ggplot(data,aes(x=Age,y=Fare)) +geom_point()
Script Runtime Error
Attaching package: 'dplyr' The following objects are masked from 'package:stats': filter, lag The following objects are masked from 'package:base': intersect, setdiff, setequal, union Loading required package: bitops Error in readRDS(url(url4, method = "libcurl")) : cannot open the connection to 'https://github.com/gbortz27/aizatron/blob/main/mytitanic.rds?raw=true' In addition: Warning message: In readRDS(url(url4, method = "libcurl")) : URL 'https://github.com/gbortz27/aizatron/blob/main/mytitanic.rds?raw=true': status was 'Couldn't resolve host name'However when it comes to reading in the file from getdata in the R script I can read in both RDS (compressed csv) and csv files and process them in the Query editor FROM THE EXACT SAME URLS. So if thr Rscript in the Get data IN THE SERVICE is working from the same sites it should mean there is no problem with
- v-janeyg-msft4 years agoCommunity Support
Hi Anonymous
This thread has been solved. If you have problems and are more complicated, I suggest you open a new thread. There will be other engineers to help you.
Best Regards,
Community Support Team _ Janey