You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rlang::set_names -> substitute with stats::setNames.
Documentation of rlang::set_namesstates: This is equivalent tostats::setNames()`, with more features and stricter argument checking.
rlang::parse_expr -> substitute with base::parse.
Documentation of rlang::parse_exprstates they are barely the same and the only difference is that: parser_expr, unlike base::parse, never retain source reference information, as doing so is slow and rarely necessary. We can substitute with parser(keep.source = FALSE).
Consider if we can substitute those with equivalents from {base} package.
{rlang}
is used just a couple of times in 3 casesrlang::is_empty
-> substitute withlength(x) == 0
rlang::set_names
-> substitute withstats::setNames
.states: This is equivalent to
stats::setNames()`, with more features and stricter argument checking.rlang::parse_expr
-> substitute withbase::parse
.rlang::parse_expr
states they are barely the same and the only difference is that:parser_expr
, unlikebase::parse
, never retain source reference information, as doing so is slow and rarely necessary. We can substitute withparser(keep.source = FALSE)
.Consider if we can substitute those with equivalents from
{base}
package.Part of #194
The text was updated successfully, but these errors were encountered: