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

excel_to_R function does not work #118

Open
v0369012 opened this issue May 8, 2024 · 2 comments
Open

excel_to_R function does not work #118

v0369012 opened this issue May 8, 2024 · 2 comments

Comments

@v0369012
Copy link

v0369012 commented May 8, 2024

Describe the bug
I call the function excel_to_R(), it just give me a null value. The example code does also not work.

To Reproduce
if(interactive()){
library(shiny)
library(excelR)
shinyApp(
ui = fluidPage(excelOutput("table")),
server = function(input, output, session) {
output$table <-
renderExcel(excelTable(data = head(iris)))
observeEvent(input$table,{
print(input$table)
print(excel_to_R(input$table))
})
}
)
}

Desktop (please complete the following information):

  • OS: Ubuntu 22.04.2 LTS
  • Browser chrome
  • Version 124.0.6367.119
@JolandadeB
Copy link

I seem to be having the same problem but only partially.
Based on some choices from the user, my app will generate an excelOutput.
The user can make some changes in this and then proceed to the next page.
Once the user is on the next page, my app will capture the excelOutput with the changes and save in a dataframe.
Let's say that my users have the choice of "A", "B", "C" and "D" that will alter the initial excelOutput.
With the choices "A", "B" and "C" the app works like expected.
However, when I select "D" the excelOutput input is not captured but is NULL.

Any thoughts on this?

@JolandadeB
Copy link

I think I've figured out what was going wrong for me. The excelOutput with option "D" was not changed since the dataframe was like what I wanted. So then there is no input being captured because there was no input. So you cannot have a default value that will be capture by the excel_to_R function

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