Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error #3

Closed
Georgitanev opened this issue Sep 17, 2017 · 1 comment
Closed

Error #3

Georgitanev opened this issue Sep 17, 2017 · 1 comment

Comments

@Georgitanev
Copy link

I saw that it happened in the video, but on my test it's not happening and I don't know why.
#the code

3. Use the read_excel() function in the readxl package to

read in the dataset

destfile = file.path(tempdir(), "Monuments.xlsx")
download.file("http://johnmuschelli.com/intro_to_r/data/Monuments.xlsx",
destfile = destfile)
mon = read_excel(destfile)

#the error

library(readxl)
destfile = file.path(tempdir(), "Monuments.xlsx")
download.file("http://johnmuschelli.com/intro_to_r/data/Monuments.xlsx",

  •           destfile = destfile)
    

trying URL 'http://johnmuschelli.com/intro_to_r/data/Monuments.xlsx'
Content type 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' length 14013 bytes (13 KB)
downloaded 13 KB

mon = read_excel(destfile)
Error in read_fun(path = path, sheet = sheet, limits = limits, shim = shim, :
Evaluation error: zip file 'C:\Users\G\AppData\Local\Temp\RtmpAjmis5/Monuments.xlsx' cannot be opened.
mon = read_excel(destfile)
Error in read_fun(path = path, sheet = sheet, limits = limits, shim = shim, :
Evaluation error: zip file 'C:\Users\G\AppData\Local\Temp\RtmpAjmis5/Monuments.xlsx' cannot be opened.
library(readxl)
library(readr)
mon = read_excel(destfile)
Error in read_fun(path = path, sheet = sheet, limits = limits, shim = shim, :
Evaluation error: zip file 'C:\Users\G\AppData\Local\Temp\RtmpAjmis5/Monuments.xlsx' cannot be opened.

@muschellij2
Copy link
Owner

muschellij2 commented Sep 17, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants