Hi-
I built a Shiny app on 2 csv files and 2 Excel files. I replace the files every morning, and if I don't open the Excel files and click Enable Editing before running RStudio, then RStudio crashes. I am on a Windows 10 machine, using Office 2016, RStudio version 1.1.453.
Here's the offending code that pulls in the Excel files:
users <- read_xls("diversiondata/RCurrentUsers.xls", sheet = 1, range = cell_cols("A:F"))
unsheltered_completeness <-
read_xls(
"diversiondata/RDataQuality3.xls",
sheet = 1,
range = cell_cols("A:C")
)
# between each of these, I have a mutate() statement that's irrelevant to all this (NOT piped, separate)
unsheltered_spdat_casemgrs <-
read_xls(
"diversiondata/RDataQuality3.xls",
sheet = 2,
range = cell_cols("A:C")
)
unsheltered_contacts <-
read_xls(
"diversiondata/RDataQuality3.xls",
sheet = 3,
range = cell_cols("A:C")
)
unsheltered_referrals <-
read_xls(
"diversiondata/RDataQuality3.xls",
sheet = 4,
range = cell_cols("A:C")
)
unsheltered_clients <-
read_xls("diversiondata/RDataQuality3.xls",
sheet = 5,
range = cell_cols("A:G"))
It all works great if I set the Excel files to Enable Editing, but why do I have to? I'm not writing to the files.
The message I get when it crashes is R Session Aborted. R encountered a fatal error. The session was terminated. "Start New Session"