Skip to content

Better error message when Excel file is open (Windows?) #773

@AmeliaMN

Description

@AmeliaMN

It's possible that this issue has been solved in a newer release, and/or that this is Windows-specific. But, I would love a more helpful error message when trying to load a file that is also open in Excel. Here's the current error message I get:

Error in utils::unzip(zip_path, list = TRUE) : 
  zip file 'C:\Users\[long file path]\SpreadsheetName.xlsx' cannot be opened

This feels ripe for a tidyverse helpful error message, like perhaps

Error in utils::unzip(zip_path, list = TRUE) : 
  zip file 'C:\Users\[long file path]\SpreadsheetName.xlsx' cannot be opened
Do you have the Excel file open in another program? Try closing the spreadsheet everywhere else and running your code again. 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions