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
#' @rdname foo#' @exportbar<-function(x) x#' @rdname foo#' @exportfoo<-function(x) x#' A foo#' @param x An x#' @name fooNULL
Crucially, we are documenting foo() and bar() together, in a doc object whose contents (at least partially) come after the functions themselves.
I expected roxygenize() here to create man/foo.Rd with \name{foo}, however we get \name{bar}:
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/aaa.R
\name{bar}
\alias{bar}
\alias{foo}
\title{A foo}
\usage{
bar(x)
foo(x)
}
\arguments{
\item{x}{An x}
}
\description{
A foo
}
Context: I am trying to convert the custom doc mark-up {bit64} has been using to {roxygen2}.
as.factor.integer64 is documented in the object as.character.integer64, however, that actual definition comes in a (collation-wise) earlier R file:
Thus my attempted migration fails, with the resulting \name{} having changed. I'd at least like a workaround. One possibility is copying the as.factor.integer64() definition into the 2nd file, but it makes navigating git history/blame harder.
The text was updated successfully, but these errors were encountered:
Consider R/foo.R:
Crucially, we are documenting
foo()
andbar()
together, in a doc object whose contents (at least partially) come after the functions themselves.I expected
roxygenize()
here to create man/foo.Rd with\name{foo}
, however we get\name{bar}
:Context: I am trying to convert the custom doc mark-up {bit64} has been using to {roxygen2}.
as.factor.integer64
is documented in the objectas.character.integer64
, however, that actual definition comes in a (collation-wise) earlier R file:https://github.com/r-lib/bit64/blob/691033911dc6a00bcaf70c7a38ba7c2a4aad6dcb/R/highlevel64.R#L2483
https://github.com/r-lib/bit64/blob/691033911dc6a00bcaf70c7a38ba7c2a4aad6dcb/R/integer64.R#L949-L959
https://github.com/r-lib/bit64/blob/691033911dc6a00bcaf70c7a38ba7c2a4aad6dcb/R/integer64.R#L2055
Thus my attempted migration fails, with the resulting
\name{}
having changed. I'd at least like a workaround. One possibility is copying theas.factor.integer64()
definition into the 2nd file, but it makes navigating git history/blame harder.The text was updated successfully, but these errors were encountered: