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
In case a package pkgname includes a function pkgname() a strategy to avoid duplicated Rd alias pkgname is to "manually" add @aliases pkgname-package to R/pkgname-package.R. However, this also produces \alias{_PACKAGE} in the corresponding Rd file. For example this source file:
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/roxypackagedoc-package.R
\docType{package}
\name{roxypackagedoc-package}
\alias{roxypackagedoc-package}
\alias{_PACKAGE}
\title{Testing erroneous alias generation}
\description{
Test for roxygen2 error when generating pkgname-package man page.
}
\keyword{internal}
Related to #1160.
In case a package
pkgname
includes a functionpkgname()
a strategy to avoid duplicated Rd aliaspkgname
is to "manually" add@aliases pkgname-package
toR/pkgname-package.R
. However, this also produces\alias{_PACKAGE}
in the corresponding Rd file. For example this source file:https://github.com/mbojan/roxypackagedoc/blob/0906e7f7d37147bdc3e906341a9530955a3f83d8/R/roxypackagedoc-package.R#L1-L9
Produces (roxygen2 7.1.2) this Rd:
https://github.com/mbojan/roxypackagedoc/blob/0906e7f7d37147bdc3e906341a9530955a3f83d8/man/roxypackagedoc-package.Rd#L1-L11
c.f. dummy package https://github.com/mbojan/roxypackagedoc
The text was updated successfully, but these errors were encountered: