You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it looks like if a package has the same name as a
function in the package, the default aliasing using the "_PACKAGE"
sentinel will create two aliases of the same name in different .Rd files
and R CMD check --as-cran will complain.
E.g. using roxygen 7.2.3 and using
#'@keywords internal
"_PACKAGE"
in a file foo-package.R AND if there also is a foo.R documented with
roxygen, a file foo-package.Rd with \alias{foo} is created and there will also
be a file foo.Rd with \alias{foo}
The R CMD check --as-cran then says
Rd files with duplicated alias 'foo':
‘foo-package.Rd’ ‘foo.Rd’
This can be manually prevented by setting the aliases in foo-package.R to
foo-package only, as
Dear roxygen2 developers,
it looks like if a package has the same name as a
function in the package, the default aliasing using the "_PACKAGE"
sentinel will create two aliases of the same name in different .Rd files
and R CMD check --as-cran will complain.
E.g. using roxygen 7.2.3 and using
in a file foo-package.R AND if there also is a foo.R documented with
roxygen, a file foo-package.Rd with \alias{foo} is created and there will also
be a file foo.Rd with \alias{foo}
The R CMD check --as-cran then says
This can be manually prevented by setting the aliases in foo-package.R to
foo-package only, as
which is why I believe it is due to the default aliases that are created.
The text was updated successfully, but these errors were encountered: