Error in : object of type 'closure' is not subsettable

前端 未结 5 2189
生来不讨喜
生来不讨喜 2020-11-22 04:39

I was finally able to work out the code for my scraping. It seemed to be working fine and then all of a sudden when I ran it again, I got the following error message:

<
5条回答
  •  温柔的废话
    2020-11-22 05:01

    I had this issue was trying to remove a ui element inside an event reactive:

    myReactives <- eventReactive(input$execute, {
        ... # Some other long running function here
        removeUI(selector = "#placeholder2")
    })
    

    I was getting this error, but not on the removeUI element line, it was in the next observer after for some reason. Taking the removeUI method out of the eventReactive and placing it somewhere else removed this error for me.

提交回复
热议问题