I have a PowerBI (PBI) report created using local R code for doing some plots. Usually, the code is directly pasted within PBI but I indicate the path to the R file in my co