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

warning when preferred package is not loaded #92

Open
GildasLepennetier opened this issue Sep 20, 2023 · 0 comments
Open

warning when preferred package is not loaded #92

GildasLepennetier opened this issue Sep 20, 2023 · 0 comments
Labels
feature a feature request or enhancement

Comments

@GildasLepennetier
Copy link

Hi there,

Noticed something that may help the development of this package. Did not find that in the closed or open tickets.
The following code should be self explanatory

library(conflicted)
conflicts_prefer(config::get)
get

The result of the following is "<environment: namespace:base>" for the usage of "get" since the library "config" was never loaded. This may create unexpected behaviour without a warning like "warning: usage of a function from a different library than the preferred one: base::get instead of config::get"

I do not know if this is possible, or in the scope of the development plan of the conflicted library, but I think it could be a great improvement.

@hadley hadley added the feature a feature request or enhancement label Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants