It seems you don't have Pandoc available on your system. This saveWidget function has always required Pandoc, and requires it now for self_contained = TRUE which is the default.
You need to have Pandoc installed if you want to do that. It should be available if you are using RStudio. Otherwise, you need to install it.