Ah, okay. The library conflict is this part of the error message:
tidyverse_conflicts() -- x dplyr::filter() masks plotly::filter(), stats::filter() x dplyr::lag() masks stats::lag()
This is a little bit complicated behind the scenes, but basically when R loads the packages you have asked it to load, it checks to make sure there are no functions with the same name. If there are, then whichever package is loaded last takes priority. So in the above example, the packages dplyr, plotly, and stats all have a function called filter().
R needs a way to decide which filter() function to use when you call filter(). So since you loaded dplyr last, the dplyr version of the filter() function masks/hides the filter() function in other packages. So if you just use the filter() function, you are using dplyr::filter(). If you really wanted to use filter() from plotly or stats you would need to call them explicitly with plotly::filter() or stats::filter(), respectively.