PecanProject / pecan

The Predictive Ecosystem Analyzer (PEcAn) is an integrated ecological bioinformatics toolbox.
www.pecanproject.org
Other
202 stars 230 forks source link

fix for tidyselect 1.2.0 #3055

Closed Aariq closed 1 year ago

Aariq commented 1 year ago

Description

replaces select(df, .data$colname) with select(df, "colname") and other related changes.

Motivation and Context

Use of .data in tidyselect situations (e.g. select(), rename()) is deprecated in tidyselect 1.2.0: https://www.tidyverse.org/blog/2022/10/tidyselect-1-2-0/

Review Time Estimate

Types of changes

Checklist:

infotroph commented 1 year ago

Is support for selecting via quoted string a recent addition that means we should specify a minimum dplyr version? Or has it been around for a while and I just didn't notice because mutate is different?

Either way, hurray for decrufting!

Aariq commented 1 year ago

Is support for selecting via quoted string a recent addition that means we should specify a minimum dplyr version? Or has it been around for a while and I just didn't notice because mutate is different?

Either way, hurray for decrufting!

Looks like it's been around since 2017 when dplyr started using tidyselect (https://dplyr.tidyverse.org/news/index.html#major-changes-0-7-5)

infotroph commented 1 year ago

Looks like it's been around since 2017

Cool, then I see no need to add any version specifiers