"No input provided and clipboard is not available." reprex error with - github "tidyverse/reprex" install

reprex

#1

Moved from Reprex error "No input provided and clipboard is not available."


Hi all, as 10/08 I've installed the github version or reprex but getting the same error:

I've even installed xclip with:

 sudo apt-get install xclip
reprex::reprex()
No input provided and clipboard is not available.
Error in reprex_(r_file) : 
Cannot render this code.
Error in options(tidyverse.quiet = ) : 
  argumento ausente, sin argumento por omisión

Sys.info() information:


Sys.info()
  

                                    sysname 
                                      "Linux" 
                                      release 
                          "4.15.0-30-generic" 
                                      version 
"#32-Ubuntu SMP Thu Jul 26 17:42:43 UTC 2018" 
                                     nodename 
                                  "ogonzales" 
                                      machine 
                                     "x86_64" 
                                        login 
                                  "ogonzales" 
                                         user 
                                  "ogonzales" 
                               effective_user 
                                  "ogonzales"

Reprex error "No input provided and clipboard is not available."
Ubuntu 18.04: Error in rgdal::ogrListLayers(input) : Cannot open data source
#2

If you're running reprex::reprex() as such, then you haven't provided any input! You either need to pass in an infile and an outfile:

reprex::reprex(input = "fruits_stringdist.R", outfile = "fruits_stringdist.md")

or render a reprex based on selection (see below)