title: Rmarkdown space without line break ~
body: <p>In Latex, it is possible to insert a space that does not end a line by a <code>~</code> character. So writing <code>Fig.~\ref{fig:f1}</code> will write as </p>
  
  <blockquote>
    <p>Fig. 1</p>
  </blockquote>
  
  <p>and it makes sure that text wrapping never breaks a line between Fig. and the number 1.</p>
  
  <p>However, in Rmarkdown writing <code>Fig.~\@ref(fig:f1)</code>, <code>Fig.\~\@ref(fig:f1)</code>, or <code>Fig.\\~\@ref(fig:f1</code> translates to <code>Fig.\textasciitilde{}\ref{fig:f1}</code> giving</p>
  
  <blockquote>
    <p>Fig.~1</p>
  </blockquote>
  
  <p>in the output.
  How do you insert the equivalent of <code>~</code> in rmarkdown? I am actually using bookdown.</p>