hypervolume icon indicating copy to clipboard operation
hypervolume copied to clipboard

Namespace conflict

Open teunbrand opened this issue 10 months ago • 1 comments

Hi there,

We've been preparing a new major release for ggplot2 and found an issue during a reverse dependency check. When installing your package we get the following message:

Found the following significant warnings: Warning: replacing previous import ‘e1071::element’ by ‘ggplot2::element’ when loading ‘hypervolume’

I think the correct solution is to use importFrom() in your package's namespace to cherrypick functions. This is in contrast to import(<package>), which causes this conflict. You can test your code with the development version of ggplot2 by installing it as follows:

# install.packages("pak")
pak::pak("tidyverse/ggplot2")

We aim to release the new ggplot2 version in about 2 weeks, and hope you can submit a fix to CRAN around that time. Hopefully this will inform you in a timely manner.

Best wishes, Teun

teunbrand avatar Jun 13 '25 14:06 teunbrand

Thanks - I think this is now resolved, new version to CRAN.

Ben

On Fri, Jun 13, 2025 at 7:31 AM Teun van den Brand @.***> wrote:

teunbrand created an issue (bblonder/hypervolume#15) https://github.com/bblonder/hypervolume/issues/15

Hi there,

We've been preparing a new major release for ggplot2 and found an issue during a reverse dependency check. When installing your package we get the following message:

Found the following significant warnings: Warning: replacing previous import ‘e1071::element’ by ‘ggplot2::element’ when loading ‘hypervolume’

I think the correct solution is to use importFrom() in your package's namespace to cherrypick functions. This is in contrast to import(), which causes this conflict. You can test your code with the development version of ggplot2 by installing it as follows:

install.packages("pak")pak::pak("tidyverse/ggplot2")

We aim to release the new ggplot2 version in about 2 weeks, and hope you can submit a fix to CRAN around that time. Hopefully this will inform you in a timely manner.

Best wishes, Teun

— Reply to this email directly, view it on GitHub https://github.com/bblonder/hypervolume/issues/15, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAE66P7ZZ3AW7IAAWLDZ6C33DLOE3AVCNFSM6AAAAAB7IJNOGCVHI2DSMVQWIX3LMV43ASLTON2WKOZTGE2DGNZXG43TINY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

bblonder avatar Jun 16 '25 15:06 bblonder