Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to put result on the clipboard. #173

Closed
IndrajeetPatil opened this issue Jan 31, 2018 · 4 comments
Closed

Unable to put result on the clipboard. #173

IndrajeetPatil opened this issue Jan 31, 2018 · 4 comments

Comments

@IndrajeetPatil
Copy link

@IndrajeetPatil IndrajeetPatil commented Jan 31, 2018

Hi,

I have been using reprex almost on a daily basis for a month now. But ever since I installed the new version of reprex, it has stopped working properly and gives me the following error-

> reprex::reprex(input = "so_answer.R", venue = "so")
Unable to put result on the clipboard. How to get it:
  * Capture what reprex() returns.
  * Use `outfile = "foo"` to request output in specific file.
  * See the temp file:
    - C:/Users/Indrajeet Patil/AppData/Local/Temp/Rtmp6LPKDJ/file23a428855d1_reprex.md

I reinstalled reprex, clipr, knitr, but still the same issue persists. Does this have to do with some other package I might have installed that is interfering with its functionality?

@cderv
Copy link
Contributor

@cderv cderv commented Feb 1, 2018

There is some issue with the version currently on CRAN (version 0.1.2).
CRAN policy changed regarding clipboard, changes have been made in different packages but not all are on the CRAN right now. It is why the new version has risk to not run properly. You can refer to #171 for further information.

Right now, you should install from github to have the last version working.

@IndrajeetPatil
Copy link
Author

@IndrajeetPatil IndrajeetPatil commented Feb 1, 2018

Oh, I see. Thanks! I will install the package from GitHub from henceforth.

@jennybc jennybc mentioned this issue Feb 8, 2018
@GillesSanMartin
Copy link

@GillesSanMartin GillesSanMartin commented Feb 12, 2018

Hello

I had the same problem reported here with the CRAN version.

I installed from GitHub (reprex_0.2.0) and I had the following message (when runing reprex from Rstudio in Ubuntu) even if I was providing an expression instead of using the clipboard

Rendering reprex...
 
Erreur : path for html_dependency not found: 

I tried the same with R running in a console instead of Rstudio.
I received the following message Clipboard on X11 requires 'xclip' (recommended) or 'xsel'

After installing xclip, it worked from the console and now it works also from Rstudio after restarting it.
I don't know exactly what solved what...

Thanks for the nice package by the way...

@ptoche
Copy link

@ptoche ptoche commented Apr 5, 2018

Until the problem is resolved, perhaps add a recommendation to install from github to the readme?

@jennybc jennybc closed this as completed Jun 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants