Error in : Clipboard on X11 requires that the DISPLAY envvar be configured

We don't really have enough info to help you out. Could you ask this with a minimal REPRoducible EXample (reprex)? A reprex makes it much easier for others to understand your issue and figure out how to help, have a look at this guide, to see how to create one for a shiny app