I manage a R programming environment for a group of users at my company. We often work with sensitive data, and some of my data scientists have started using the reprex package in R.
It's a great little package, but I noticed the package by default uploads images to imgur when you call it. This would be problematic for us if one of our users accidentally uploaded something sensitive.
Would there be a way to change this default for all users perhaps in a Rprofile.site or via some setting in RStudio?
If you can modify .Rprofile for them, you can set this option there. Or you can set an alias there with default venue set, using, for example, purrr::partial or something similar.
Could you provide a code example of what you're talking about? How would I specifically set the default venue function option in Rprofile.site? Or even set knitr::opts_knit$set(upload.fun = identity) (although this would be much harder given that this isn't a function option but something reprex() does it seems).
Or the other option, could you provide a code example of that using purrr::partial?
Second case you can prevent by calling library(reprex) in your .Rprofile. Then overwriting reprex with partial will be first on a search path. Not sure how to go around reprex::reprex() route without messing too much with environments and stuff. At the end of the day there will be some need for education of the masses on the danger of sharing private data
Thank you for this. This has been very informative. I'll also note this method doesn't work if users use reprex through the RStudio addins GUI (because under the hood it's using reprex::reprex()).
We will have to communicate to users to be careful.