cynkra / constructive

Display Idiomatic Code to Construct Most R Objects
https://cynkra.github.io/constructive
Other
131 stars 6 forks source link

recycling and duplicate names in dfs #475

Closed moodymudskipper closed 3 months ago

moodymudskipper commented 3 months ago

Closes #470 This will unfortunately break some valid snapshot tests but I think it's better to have this the default behavior. There is a recycle = TRUE arg to opts_data.frame(), opts_tbl_df(), opts_data.table() if this needs to be turned off (in that case this needs to be turned of individually for these various classes.

Since recycling relies on S3 subsetting we cannot guarantee that it works if we don't know the bracket method, so I made it work only for the main base classes. The list of supported classes can be extended however.

aviator-app[bot] commented 3 months ago

Current Aviator status

Aviator will automatically update this comment as the status of the PR changes. Comment /aviator refresh to force Aviator to re-examine your PR (or learn about other /aviator commands).

This PR was merged using Aviator.


See the real-time status of this PR on the Aviator webapp.
Use the Aviator Chrome Extension to see the status of your PR within GitHub.