reprex

creating reproducible example using reprex package in r where a local file is being read

喜夏-厌秋 提交于 2019-12-14 03:08:06
问题 I often use reprex::reprex to create reproducible examples of R code to get help from others to get rid of errors in my code. Usually, I create minimal examples using datasets like iris or mtcars and it works well. But I always fail to use reprex any time I need to use my own data since the problem is so specific and I can't rely on datasets from datasets library. In that case, I get the following error: # loading needed libraries library(ggplot2) library(cowplot) library(devtools) # reading