@HanOostdijk I was trying to create a reproducible example using the reprex package but when I try this example from Get help!, it throws an error message.
library(reprex)
(y <- 1:4)
mean(y)
As instructed in the reprex package help, I type reprex() in the console. It did return a result earlier on the clipboard but now when I type the above code, it returns this error while rendering reprex:
Error in parse(text = x, keep.source = TRUE) :
<text>:5:9: unexpected symbol
4:
5: Warning message
^
I have used reprex for the first time and not sure what is going wrong. I updated the R studio version and all the installed packages but this issue remains. Any help would be greatly appreciated.