tidymodels / hardhat

Construct Modeling Packages
https://hardhat.tidymodels.org
Other
103 stars 17 forks source link

Rd files with duplicated alias #130

Closed mladenjovanovic closed 4 years ago

mladenjovanovic commented 4 years ago

I have run devtools::check() command for the package built by hardhat. And I get the following warning:

"Rd files with duplicated alias"

Screenshot 2020-04-27 at 23 49 38

I suppose that this function generates this issue for the devtools::check()

Screenshot 2020-04-27 at 23 49 50

Package source code can be found at github.com/mladenjovanovic/dorem

DavisVaughan commented 4 years ago

Because you have a function dorem() with the same name as the package {dorem}, you get two man files that both try to be what ?dorem points to. The easiest way to fix it is to limit the package aliases by doing this, and then redocumenting

https://github.com/DavisVaughan/testduplicate/blob/7c4c6ce09b3131d966cda91c6fb6a67fa6e0bbb5/R/testduplicate-package.R#L2

mladenjovanovic commented 4 years ago

Thanks a lot Davis! I appreciate the help and really enjoying the hardhat!

github-actions[bot] commented 3 years ago

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.