Escaping “@” in Roxygen2 Style Documentazione
Domanda
dire Let Ho un blocco di commento in cui mi piacerebbe scrivere un indirizzo email. Come potrei fare per fuggire il simbolo "@", così roxygen tratta come testo invece di una direttiva?
Soluzione
A double at-sign @@
will do the job.
As an example, take the email address in the author field of this documentation:
##' A package to check Roxygen's sanity.
##' @name helloRoxygen-package
##' @docType package
##' @author My name \email{me@@here.org}
NA
which produces this *.Rd
file when processed with roxygenize()
:
\docType{package}
\name{helloRoxygen-package}
\alias{helloRoxygen-package}
\title{A package to check Roxygen's sanity.}
\description{
A package to check Roxygen's sanity.
}
\author{
My name \email{me@here.org}
}
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow