mdlincoln / clipr

R functions for reading and writing from the system clipboard
http://matthewlincoln.net/clipr/
151 stars 24 forks source link

Fixes for usage with xsel #26

Closed MilesMcBain closed 7 years ago

MilesMcBain commented 7 years ago

Fixes to address #24

Issue 1 was the premature error firing off of the no display error after xclip was not found. xsel was never getting a look in.

After that was resolved, xsel was breaking many tests due to outputting the contents of the clipboard when creating the connection with pipe(). With the -i option it seems not to do that. Not that the documentation is clear on why.

mdlincoln commented 7 years ago

Brilliant! It's always the things you didn't manage to test for that rear up to haunt you... many thanks for the fix 👍

mdlincoln commented 7 years ago

I polish up a CRAN release later today.

mdlincoln commented 7 years ago

Closes #24