【问题标题】:get data from excel online (office 365)从 excel 在线获取数据 (office 365)
【发布时间】:2017-07-27 09:29:34
【问题描述】:

我正在使用 Microsoft 应用程序(来自 http://portal.office.com)在在线 Excel 表上翻译和存储推文,现在我想用 R 阅读它。

excel表格中的数据urlhttps://myagency-my.sharepoint.com/.../tweet.xlsx

我试过了:

library(readxl)
read_excel('//companySharepointSite/project/.../ExcelFilename.xlsx', Sheet1', skip=1)`

来自这个post。它给出了:

Error in sheets_fun(path) :    Evaluation error: zip file

【问题讨论】:

  • This 可能会有所帮助

标签: r excel office365


【解决方案1】:

我相信read_excel 仅适用于本地文件。这可能会奏效:

library(xlsx)  
library(httr)
url <- 'https://myagency-my.sharepoint.com/.../tweet.xlsx'  
GET(url, write_disk("excel.xlsx", overwrite=TRUE))  
frmData <- read.xlsx("excel.xlsx", sheetIndex=1, header=TRUE) 

【讨论】:

  • 你好,当我这样做时我得到Error in curl::curl_fetch_disk(url, x$path, handle = handle) : error setting certificate verify locations: CAfile: /mingw32/ssl/certs/ca-bundle.crt CApath: none
  • 这看起来更像是 https 连接 问题而不是 excel 文件读取 问题;恐怕我无能为力:(
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2023-03-17
  • 2019-05-12
相关资源
最近更新 更多