-
Notifications
You must be signed in to change notification settings - Fork 84
Open
Labels
featurea feature request or enhancementa feature request or enhancement
Description
I'd like to make a case for an argument default_packages = getOption("reprex.default_packages") .
- When loading conflicted, all those nasty deprecation warnings disappear
- The number one issue for repeating the generation of a reprex is to forget to attach magrittr
Granted, the second issue is losing relevance with |>, but I would totally use options(reprex.default_packages = c("conflicted", "magrittr")) . The inserted library() calls would be inserted in front of the code that is copied from the clipboard.
Would you like to review a PR?
library(dplyr)
#>
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#>
#> filter, lag
#> The following objects are masked from 'package:base':
#>
#> intersect, setdiff, setequal, unionCreated on 2022-06-24 by the reprex package (v2.0.1)
library(conflicted)
library(dplyr)Created on 2022-06-24 by the reprex package (v2.0.1)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
featurea feature request or enhancementa feature request or enhancement