Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing Functions #164

Open
jonthegeek opened this issue Aug 7, 2023 · 1 comment
Open

Importing Functions #164

jonthegeek opened this issue Aug 7, 2023 · 1 comment

Comments

@jonthegeek
Copy link

I'd love to see advice on when to import (vs use_standalone?) vs write your own, and any related advice around them. For example, Clean Code recommends always wrapping imported functions to make it easier to deal with changes. Would you recommend that in R? Only in some situations, maybe?

@olivroy
Copy link

olivroy commented Sep 6, 2023

On that, I would be curious about adding a dependency vs using a re-export

If importing dplyr in a package but only need tibble::tibble(), is it better to use dplyr::tibble(), same for tidyselect. I haven't found something on that in r-pkgs.org

I know these are "free" dependencies, but cran may complain if there are too many deps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants