Error in dev.off()

Hi, and welcome!

Please see the FAQ: What's a reproducible example (`reprex`) and how do I do one? Using a reprex, complete with representative data will attract quicker and more answers.

In this case, it's unclear how that error message is even possible. It simply is unrecognized in either the browser or R.