reactiveFileReader not updating after changes in the file

I'm using the reactiveFileReader to load a csv. The csv (stored in my DropBox account) has a single line with some configuration values. The problem is that when I change the values from the interface and save them into the csv, the reactiveFileReader doesn't upload the file again, and I have lots of other reactive expressions that dependends on the configuration values.
Do you know why this might be happening?

Besides, each time a user logs the files are downloading again when I'm using a cross-session configuration.

Thanks in advance.

 server <- function(input, output, session) {

    conf <<- reactiveFileReader(100,NULL,paste0(inputDir,"conf.csv"),loadCSV)

    articles <<- reactive({
       req(conf())
       loadCSV(paste0(inputDir,conf()$fileArticles))
    })
 
    outputbody <- renderUI({
           ....
           actionButton("saveConfig", ...)
  })

  observeEvent(input$saveConfig,{
         .....
         drop_upload(filePath,inputDir)
   })}

To solve the problems I'm finally doing this:

I hope it helps someone else.

  conf <<- loadCSV("conf.csv")
  server <- function(input, output, session) {

   rv <- reactiveValues(conf=0)

   articles <<- reactive({
                rv$conf
                loadCSV(paste0(inputDir,conf()$fileArticles))
   })

  outputbody <- renderUI({
       ....
       actionButton("saveConfig", ...)
  })

  observeEvent(input$saveConfig,{
     .....
     drop_upload(filePath,inputDir)
     conf <<- newConf 
     rv$conf <- rv$conf + 1 
  })}

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.