I'm using a microsoft app (from http://portal.office.com ) to translate and stock tweet on an online excel sheet, now I want to read it with R.
The data in excel sheet url https://myagency-my.sharepoint.com/.../tweet.xlsx
I tried:
library(readxl)
read_excel('//companySharepointSite/project/.../ExcelFilename.xlsx', Sheet1', skip=1)`
from this post . It gives:
Error in sheets_fun(path) : Evaluation error: zip file
I believe read_excel
works only with local files. This might do the trick:
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)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.