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

cleaning up the namespace #223

Merged
merged 3 commits into from
May 2, 2024
Merged

cleaning up the namespace #223

merged 3 commits into from
May 2, 2024

Conversation

wcornwell
Copy link
Contributor

I had a mis-understanding of what "imports" in the Description did. Turns out it doesn't Import. That mis-understanding cascaded into some other issues, but I think it's now cleaned up.

We're currently importing two packages: dplyr and stringr, which means we are (somewhere) using functions without the :: .

This is because of the %>% for dplyr . Not sure why for stringr. But I think it's OK.

The importing of individual functions in the namespace was unnecessary.

@dfalster
Copy link
Member

dfalster commented May 2, 2024

Nice work @wcornwell ! I found the reminding dplyr, strings and will remove them now.

- add explcit namespace to calls of relevant functions
@dfalster
Copy link
Member

dfalster commented May 2, 2024

Hi @wcornwell

I've continued your lead here and also removed stringr and dplyr from the NAMESPACE. I also misunderstood the implications of listing functions as imports here.

Removing those packages uncovered a bunch of places where we didn't have an explicit namespace prefix, i..e mutate() instead of dplyr::mutate(), so I updated those too.

And we can drop tibble from DESCRIPTION, as you can create a nibble via dplyr

@dfalster
Copy link
Member

dfalster commented May 2, 2024

Oh no, I brok it!

@wcornwell
Copy link
Contributor Author

Probably could remove forcats too?

@wcornwell
Copy link
Contributor Author

Cool!

@dfalster
Copy link
Member

dfalster commented May 2, 2024

Probably could remove forcats too?

Yes, it is used in one place, though I wonder if that is necessary. Need to check

@dfalster dfalster merged commit 2cd65dc into develop May 2, 2024
4 checks passed
@dfalster dfalster deleted the namespace_cleaning branch May 2, 2024 23:13
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

Successfully merging this pull request may close these issues.

2 participants