I keep getting this error when using reprex, but I've followed -- what I think -- are the solutions online on these two links:
opened 04:20AM - 20 Sep 17 UTC
closed 01:40AM - 07 Jan 18 UTC
Clipboard is not generally available on Linux. Following the minimum example pro… vided (copying to clipboard `y <- 1:4`) I got:
``` r
reprex()
#> No input provided and clipboard is not available.
#> Rendering reprex...
#> 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:
#> - /tmp/RtmpSKU1b1/file46ab29804967_reprex.md
```
Clipr provides also a solution:
``` r
clipr_available()
#> [1] FALSE
read_clip()
#> Error: Clipboard on X11 requires 'xclip' (recommended) or 'xsel'.
```
And in fact, having installed xclip, everything seems to be working fine. :+1:
However, the solution is maybe not so straightforward to find? I'd suggest to put a line somewhere suggesting Linux users to install xclip if they want to run reprex.
opened 11:27AM - 29 Dec 16 UTC
closed 10:50AM - 30 Dec 16 UTC
I used to be able to use reprex, but now for some reason it seems unable to use … the clipboard, even though `xclip` is installed on my Ubuntu 16.04 machine. When I launch `reprex()` I get:
```r
No input provided via `x` or `input` and clipboard is not available.
```
Any idea what might be going on? I'd be happy to provide any information you might need for debugging purposes. I'm using the last github version of `reprex`.
It still doesn't work.
Any ideas?
2 Likes
danr
February 13, 2018, 6:36pm
2
There an issue with the version of reprex currently on CRAN. Until it is updated you need to install reprex directly from github with the follow on the command-line or console
devtools::install_github("tidyverse/reprex")
Github issue for more info
opened 11:22PM - 31 Jan 18 UTC
closed 06:51PM - 23 Jun 18 UTC
Hi,
I have been using `reprex` almost on a daily basis for a month now. But e… ver 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?
10 Likes
Yes @danr is right. The reprex package has been resubmitted to CRAN for over a week with zero progress and no reply to my inquiries, so I am not sure what to do. It is very frustrating, especially because I don't think the broken release should ever have happened in the first place.
3 Likes
I find I can still implement reprex() with the current CRAN version via the RStudio Addins -> Render reprex. I can use any of the options in the Shiny addin module window, even 'on the clipboard', despite getting the same error as you from the console.