当前位置: 首页>>代码示例 >>用法及示例精选 >>正文


R tidymodels tidymodels_conflicts tidymodels 和其他包之间的冲突


该函数列出了 tidymodels 中的包与您已加载的其他包之间的所有冲突。

用法

tidymodels_conflicts()

细节

有四个冲突被故意忽略:来自 dplyr 的 intersectunionsetequalsetdiff 。这些函数使基本等效函数变得通用,因此不会对任何现有代码产生负面影响。

要管理冲突,您可以使用冲突的包。要优先使用 tidymodels 函数而不是其他函数,请使用 tidymodels_prefer()

也可以看看

例子

tidymodels_conflicts()
#> ── Conflicts ─────────────────────────────────── tidymodels_conflicts() ──
#> ✖ purrr::discard() masks scales::discard()
#> ✖ dplyr::filter()  masks stats::filter()
#> ✖ dplyr::lag()     masks stats::lag()
#> ✖ recipes::step()  masks stats::step()
#> • Use tidymodels_prefer() to resolve common conflicts.
源代码:R/conflicts.R

相关用法


注:本文由纯净天空筛选整理自Max Kuhn等大神的英文原创作品 Conflicts between the tidymodels and other packages。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。