Hello dear RStudio Community!
I have developed a web app for scientists in my research field to help parse, visualise, inspect and clean (very specific) data. It is hosted on shinyapps.io (no advertisement intended) and it works well enough (source code on github).
I haven't worked on the source code in a while and wanted to publish my web app as part of my research project. To my astonishment and irritation, the web app is completely broken due to updates - in tidyverse packages, as I found out after a while.
I am faced with this ominous message that I just can't trace back (I have tried using browser(), checked every place where I use bind_rows() and printed intermediate results to the console):
Warning: Error in dplyr::bind_rows: Can't combine `MI18-L8-A$value` <character> and `MI18-L8-B$value` <logical>.
3: runApp
2: print.shiny.appobj
1: <Anonymous>
Warning: Error in dplyr::bind_rows: Can't combine `MI18-L8-A$value` <character> and `MI18-L8-B$value` <logical>.
3: runApp
2: print.shiny.appobj
1: <Anonymous>
MI18-L8-A and MI18-L8-B are the names/identifiers of the two sediment cores/datasets in the sample data that are merged upon parsing the raw data.
What I know so far:
- When I print/inspect intermediary results, I can't find the step that throws the error.
- The main parsing is done in an encapsulated function. The result seems to be fine when using browser()
- I am not sure if this error could be caused by unwanted reactivity, but...
- The above error is very clearly a consequence of the stricter type checking dplyr 1.0 is now doing
- I do not understand why it says
MI18-L8-A$value
when MI18-L8-A is not a dataframe. - It doesn't matter which files I use, there is always one "character" and one "logical".
Long story short: I have no idea where this error comes from and before I'm rewriting my whole app not to use the tidyverse, I hope I can profit from the experience of this community. Has anyone experienced something similar?