In a general case of a regular RStudio installation I would recommend clipr::write_clip().
But in the special case of RStudio Cloud I don't think copying to Clipboard is feasible, as your code is being executed on a server, and you probably don't want the result to end up in the server's Clipboard; you want it in your local Clipboard. As far as I know there is no way to achieve that.