title: Format-specifier following a percent sign in R
body: <p>I'm having trouble understanding <strong>why</strong> the following two lead to errors</p>
  
  <pre><code>&gt; sprintf("\"% %s%\"", "fdsf")
  Error in sprintf("\"% %s%\"", "fdsf") : 
    invalid format '% %s'; use format %s for character objects
  &gt; sprintf("\"%%d%\"", 2)
  Error in sprintf("\"%%d%\"", 2) : unrecognised format specification '%"'
  </code></pre>
  
  <p>R version 3.6.2</p>
  
  <p>And so how would one use a specifier immediately following a percent sign?</p>
  
  <p>Thanks!</p>