Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/65.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在没有OneDrive API的情况下,无法在Power BI中使用R脚本在受保护的OneDrive文件夹上写入csv文件_R_Api_Powerbi_Powerbi Desktop_Powerbi Custom Visuals - Fatal编程技术网

在没有OneDrive API的情况下,无法在Power BI中使用R脚本在受保护的OneDrive文件夹上写入csv文件

在没有OneDrive API的情况下,无法在Power BI中使用R脚本在受保护的OneDrive文件夹上写入csv文件,r,api,powerbi,powerbi-desktop,powerbi-custom-visuals,R,Api,Powerbi,Powerbi Desktop,Powerbi Custom Visuals,我正在PowerBI服务中使用R编写一个脚本,该脚本将自动将特定数据集下载到OneDrive上的文件中。然而,我不断地发现这个错误: 只能打开URL以读取文件中的错误(文件,ifelse(附加“a”, “w”):无法打开连接调用:write.table->file 停止执行 OneDrive文件夹的访问受到限制(需要用户名和密码),我正在尝试传递一个URL,其中嵌入了用户凭据和文件名。但是,它似乎不起作用,并抛出上述错误消息 如果我使用本地文件路径访问OneDrive文件夹,则使用Power B

我正在PowerBI服务中使用R编写一个脚本,该脚本将自动将特定数据集下载到OneDrive上的文件中。然而,我不断地发现这个错误:

只能打开URL以读取文件中的错误(文件,ifelse(附加“a”, “w”):无法打开连接调用:write.table->file 停止执行

OneDrive文件夹的访问受到限制(需要用户名和密码),我正在尝试传递一个URL,其中嵌入了用户凭据和文件名。但是,它似乎不起作用,并抛出上述错误消息

如果我使用本地文件路径访问OneDrive文件夹,则使用Power BI Desktop将表导出到该OneDrive文件夹没有问题,但在使用Power BI服务时遇到问题,并显示以下错误消息:

在文件中(file,ifelse(附加“a”、“w”):无法打开连接。 此外:警告消息:在文件中(文件,ifelse(附加“a”、“w”)) :无法打开文件“filepath/dataset.csv”:权限被拒绝

这是我使用URL使用的代码:

require(gdata)
write.csv(trim(dataset), file = "filepath/dataset.csv", row.names = F)
plot(dataset)
这是我使用本地路径导出时使用的代码:

require(gdata)
write.csv(trim(dataset), file = "https://company.sharepoint.com/site/sitename/Document/UserDocumentFolder?login=username&password=password/dataset.csv", row.names = F)
plot(dataset)
我怀疑问题可能是我如何创建URL来访问云上的OneDrive。甚至可以通过安全的URL编写R文件吗