Skip to main content

r_namespace_name

Function r_namespace_name 

Source
pub(crate) fn r_namespace_name(name: &str) -> String
Expand description

The argument of a raw NAMESPACE directive such as export(<name>).

@rawNamespace lines reach NAMESPACE verbatim, so roxygen2 does not quote them the way it quotes @export <name>. Syntactic names stay bare; a non-syntactic one (an S7 generic on [[ or %op%) becomes a double-quoted string, the form roxygen2 itself writes, because export([[) does not parse. miniextendr-api’s generic-doc pass mirrors this rule (registry::r_namespace_name); the two must stay in step so roxygen2 sees one directive, not two spellings of it. Only \ and " are escaped, as the mirror does (r_string_escape would also escape control and non-ASCII characters).