fn escape_rd(text: &str) -> String
Escape text for inclusion in Rd markup.
In Rd format, % starts a comment, { and } delimit arguments, and \ introduces commands. All four must be escaped when they appear in plain text.
%
{
}
\