This only allows user to edit other columns except column 1 and 2. However, when I try to save the edited data into a csv file to a certain directory, I cannot see the update data in there while I can see the update data if I use editable = TRUE.
Is this a bug in DT package, or I get something wrong?
[ ] I have provided the necessary information about my issue.
If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included xfun::session_info('DT'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version: remotes::install_github('rstudio/DT').
If I have posted the same issue elsewhere, I have also mentioned it in this issue.
[ ] I have learned the Github Markdown syntax, and formatted my issue correctly.
I understand that my issue may be closed if I don't fulfill my promises.
I want to use the r shiny code on https://www.r-bloggers.com/2019/04/edit-datatables-in-r-shiny-app/ as an example to regenerate the issue I am facing. Basically if I change output$mod_table <- DT::renderDataTable({ DT::datatable(v$data, editable = TRUE) })
to be like below output$mod_table <- DT::renderDataTable({ DT::datatable(v$data, editable = list(target = 'column', disable = list(columns = 1:2)), rownames = FALSE) })
observeEvent(input$saveBtn, { write.csv(df0, "/home/rstudio/Data Dictionary/BA_filled_data.csv", row.names = FALSE) })
This only allows user to edit other columns except column 1 and 2. However, when I try to save the edited data into a csv file to a certain directory, I cannot see the update data in there while I can see the update data if I use editable = TRUE. Is this a bug in DT package, or I get something wrong?
Can someone pls help with this issue? Thanks!
By filing an issue to this repo, I promise that
xfun::session_info('DT')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('rstudio/DT')
.I understand that my issue may be closed if I don't fulfill my promises.