Skip to content

infix operator containing "<-" results in incorrect usage section #554

Description

@nteetor

The roxygen documentation below,

#' Custom Assignment
#'
#' My assignment operator.
#'
#' @param x A name.
#' @param value A value to assign.
#'
#' @export
`%<-%` <- function(x, value) {
  value
}

, produces the following .rd file,

\name{\%<-\%}
\alias{\%<-\%}
\title{Custom Assignment}
\usage{
\%\%(x) <- value
}
\arguments{
\item{x}{A name.}

\item{value}{A value to assign.}
}
\description{
My assignment operator.
}

The usage section should read,

\usage{
x %<-% value
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions