Forum Discussion
Display results from a machine learning output in R
Thank for your reply. I am using the caret package for machine learning which should be supported?
I understand that I have to run the entire code in PowerBI however I'm trying to figure out if it is possible to use a model that I have allready trained and npt having to retrain the model each time I want to do a prediction.
I have the model object stored as a .rda file. I can load that model in RStudio with load() without any problems. But when I try to do load() in PowerBI it can't find or open the model object. Also in the PowerBI R query when I try to load data from a .csv file with read_csv() it cannot find the file. I have tried placing the files both in my RStudio working directory and in the R home directory specified by PowerBI.
Can anyone explain why I get this error?
I solved the prolem of loading files in the script. I just had to set the working directory specifying the full path instead of relative.
However now I have encountered another error message:
We encountered an error while trying to connect. Details: "Unable to translate bytes [E4] at index 0 from specified code page to Unicode."
Can anyone explain to me what this means?
- Anonymous8 years agoNot applicable
thanks, this worked for me in pbi desktop.
but not in pbi service. is it possible to load an rds file in service?