Hi,
I have created a custom Power BI visual using this http://radacad.com/interactive-map-using-r-and-power-bi-create-custom-visual-part-1 tutorial. I'm using Plotly to create a interactive chart in this visual.
I can use this custom visual without any problems in power BI desktop, but when I publish it to powerbi.com, I receive the following error "script runtime error":
Error in shell.exec(url) : access to 'C:\Users\Client\Temp\RtmpOsE2VBviewhtml1c717b3ce9/index.html' denied
Does anybody have an idea what's causing this error?
The following R code has been used to create the visual:
source('./r_files/flatten_HTML.r') ############### Library Declarations ###############library(ggplot2)library(plotly)library(lubridate) #################################################### ################### Actual code ####################x <- data.frame(as.POSIXct(substr(Values$SendLocalTime,0,19),format = "%Y-%m-%dT%H:%M:%S"), as.numeric(as.character(sub(",", ".", Values$AvgBeltTemperature, fixed = TRUE))))colnames(x) <- c("Date", "Value")x <- data.frame(as.POSIXct(substr(Values$SendLocalTime,0,19),format = "%Y-%m-%dT%H:%M:%S"), as.numeric(as.character(sub(",", ".", Values$AvgBeltTemperature, fixed = TRUE))), as.numeric(as.character(sub(",", ".", Values$MinBeltTemperature, fixed = TRUE))), as.numeric(as.character(sub(",", ".", Values$MaxBeltTemperature, fixed = TRUE))))colnames(x) <- c("Date", "Average","Minimum", "Maximum") #Labels for axisf <- list( family = "Arial, monospace", size = 16, color = "#7f7f7f" )label_x <- list( title = "Date", titlefont = f)label_y <- list( title = "Temperate (Celsius)", titlefont = f)g<-plot_ly(x= ~x$Date, y = ~x$Average, type = 'scatter', name="Average", mode='markers') %>% add_trace(x= ~x$Date, y = ~x$Minimum, name = 'Minimum', mode = 'markers') %>% add_trace(x= ~x$Date, y = ~x$Maximum, name = 'Maximum', mode = 'markers') %>% layout(title = "Temperature", xaxis = label_x, yaxis = label_y) (gg <- ggplotly(g))internalSaveWidget(gg, 'out.html'); ####################################################