Have you removed dotplot in DOSE?
I started getting this error.
Error : object ‘dotplot’ is not exported by 'namespace:DOSE'
In the future please tag the package name so the author can be notified.
I know from reaching out to the package maintainers, a lot of visualization functions were re-implemented in the enrichplot package. You might also try there.