Some more ideas:
-
Did you specify/edit your .libPaths at any point? Check by running
.libPaths()
command in R Studio console. -
When using functions from the libraries explicitly state their scope. For example:
readxl::read_excel(path = "yourPath")
instead of
read_excel(path = "yourPath")
.
This tells it that the function read_excel is in the readxl package. -
Make sure the excel file is also being deployed to shinyapps.io. You can place it in a 'data' subfolder of your project.
-
It would help if we could see your project code, even if not reprex, if possible.
EDIT: Also found this post with same issue, and potentially root cause is indeed the encoding as I see you use Spanish (has non-standard English characters?). Search for how to save your excel file with UTF-8 encoding. Then can also specify encoding in your read_excel function call:
data <- xlsx::read.xlsx("file.xlsx", sheetIndex = 1, encoding="UTF-8")
If there's any non-standard characters in your R code also, do RStudio: File -> Save with encoding ->UTF-8