I installed reprex 0.2.0 from Cran. I have this code in an r.script
x <- factor("a")
y <- factor("b")
c(x,y)
When I attempt the "Render reprex" selection from the Addins toolbar whether I choose the reprex source "on the clipboard" or "current selection" and choose any of the Target venue's (GitHub, Stack Overflow or R Scipt)
The dev version is still available, too, but let's try troubleshooting your first error with the CRAN version first. You can reinstall reprex with install.packages("reprex"). For good measure, why don't you install it with:
install.packages("reprex", dependencies = TRUE)
The error that you're getting,
#> Error in process_initialize(self, private, command, args, stdout, stderr…
seems to be coming from processx, and was implemented in these cases:
What happens if you copy code to your clipboard and render a reprex by running reprex::reprex() in the console?
Wow! Thank you everyone for such a prompt response. Much appreciated.
Response:
In answer to Mara, I tried install.packages("reprex", dependencies = "TRUE") but was greeted with this error: "Error in install.packages : subscript out of bounds"
Gabor, if I if copy code to your clipboard and render a reprex by running reprex::reprex() in the console, I get the "Error in process_initialize(self, private, command, args, stdout, stderr, : Command not found" error. Also, I my O/S is Windows 10