I have found a way to write to a file using R script editor in PowerBI. But the file directory is located on my hard drive. I'm trying to get it to write to a file that is located in Sharepoint. I'm not familiar with R coding, I used the code located in a tutorial.
require(gdata)
write.table(system(trim(dataset), file="(directory)", sep ="\t", row.names =FALSE))
plot(dataset);
Instead of '(directory)' I would include the URL which includes the directory to the folder in Sharepoint. However, it doesn't work.
I appreciate any help!