Naming conflicts between r-universe and CRAN packages during dependency #402
-
I've worked around this but wondering if there is a solution other than "don't do anything so foolish in the future". I created a package in my r-universe called "tableone". There is already a CRAN package of that name (my first mistake). It would be slightly painful to rename it as people in the organisation are using it. I wanted to depend on it from a second package (
stanza in my DESCRIPTION file. The problem is that the CRAN I guess my options are:
I did a bit of googling looking to see if you can specify a blacklist for a specific repository somehow but that does not seem to be an thing. Any other ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
Yes you should rename the package, otherwise it is unusable in practice.
R is very eager in updating packages from CRAN. Even if you get it to work locally, users will get in trouble because R will automatically "update" the package and replace it with the CRAN version on the user machine when it sees a chance to do so.
Also other CRAN packages may depend on the CRAN version of
tableone
and import functions from it, which don't exist in yourtableone
so it turns into a big mess...In the r-universe dashboard we try to highlight if a package conflicts with a CRAN name with a red icon and a popover, although it is not always trivial to determine if this is a different package with the same …