datapasta icon indicating copy to clipboard operation
datapasta copied to clipboard

Does datapasta work with RStudio Server?

Open cmhh opened this issue 5 years ago • 8 comments

Hi This is cool. However, at work we use RStudio Server. When I try pasting with RStudio Server I just get the following:

Clipboard is not available. Is xsel or xclip installed? Is DISPLAY set?

It this a technical limitation with remote execution? Will it only work on a local desktop?

Cheers

cmhh avatar Jul 22 '18 22:07 cmhh

Yeah this problem arises since RStudio server is trying to access the clipboard of the remote machine, not your local terminal where the data resides.

I have heard workarounds are possible through Dan Wilson, @thedatacollective, I'll see if he has anything to add here.

On Mon, 23 Jul. 2018, 8:04 am Chris Hansen, [email protected] wrote:

Hi This is cool. However, at work we use RStudio Server. When I try pasting with RStudio Server I just get the following:

Clipboard is not available. Is xsel or xclip installed? Is DISPLAY set?

It this a technical limitation with remote execution? Will it only work on a local desktop?

Cheers

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/MilesMcBain/datapasta/issues/73, or mute the thread https://github.com/notifications/unsubscribe-auth/AJiIOmLl53AaTj_L2WuXH_iNEsCIm1jOks5uJPbzgaJpZM4VaKqN .

MilesMcBain avatar Jul 22 '18 23:07 MilesMcBain

Hi,

Do u have any update on this issue? I've got the same problem with RStudio Server.

BR

kok00n avatar Dec 28 '18 22:12 kok00n

Same issue here.

-P

psalveson avatar Jan 15 '19 01:01 psalveson

Sorry friends. The approach used by Dan will not work with datapasta.

The RStudio API does not currently allow me to talk to your browser, which is what we would need to do to get your local clipboard. datapasta currently looks on the server's clipboard, and often fails when the required Linux applications are not installed, as in the case of the OP.

MilesMcBain avatar Jan 15 '19 03:01 MilesMcBain

This would be a nice feature to add.

ablack3 avatar Jan 29 '19 17:01 ablack3

datapasta currently looks on the server's clipboard, and often fails when the required Linux applications are not installed, as in the case of the OP.

Does it work if the correct applications ARE installed? I wasn't sure if the error message meant "xsel or xclip might be getting in the way" or "I need one of these for this to work." I'd love to get datapasta working with Rstudio server, and will do some heavy lifting if it will potentially work.

ghost avatar Aug 14 '19 14:08 ghost

No, even if you have xsel or xclip you'll still be trying to read from the server's clipboard, not your local one via your browser. So it will appear to 'work' but won't be useful.

MilesMcBain avatar Aug 18 '19 01:08 MilesMcBain

Good to know for an addin I had in mind for an internal package at work! I'll keep my eye on this in case a solution presents itself.

ghost avatar Aug 18 '19 01:08 ghost