Should I use quos or enquos ?

According to https://tidyeval.tidyverse.org/multiple.html:
Quoting multiple arguments can be done in two ways: internal quoting with the plural variant enquos() and external quoting with vars() .

But the following functions all use quos()

dplyr:::filter.tbl_df
dplyr:::arrange.tbl_df
dplyr:::select.data.frame

So, is quos() or enquos() preferred?

Internal: enquos(), external: can be vars() or quos() (as vars() is an alias of quos()), but we will prefer vars() internally going forward. The functions you've mentioned actually need to be updated to use vars() so that we're consistent.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.