I an unable to get reprex to run. Here is a copy of the console session:
> library(reprex)
> y <- 1:4
> mean(y)
[1] 2.5
> reprex()
Error in file(con, "w") : cannot open the connection
In addition: Warning message:
In file(con, "w") :
cannot open file 'C:/Users/Richard.R': Permission denied
Note that this is on a machine I do not have admin rights for. Also Richard
is not my userid on this machine, it is Richard.
followed by my last name.
How can I get reprex to run normally?
This looks to be a
permission
problem. You may not havewrite
access in the current directory. You can see your current directory withgetwd()
Please change your current directory with
setwd()
function to any other directory where you havewrite
access and retry this.