title: How to create a Qrcode list of names in r
body: <p>I have file with 2000 names, here a sample:</p>
  
  <pre><code>Name
  João
  Paulo
  Fernando 
  Eduardo
  Pedro
  </code></pre>
  
  <p>And I would like to generate automatically a list with the names and Qrcodes like this:</p>
  
  <p><a href="https://i.stack.imgur.com/HDBbm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HDBbm.png" alt="enter image description here"></a></p>
  
  <p>But I would like to control the size of Qrcode images, to be able to insert as many names as possible on a page, as there are 2000 names.</p>
  
  <p>So, to create all Qrcode images I used this code:</p>
  
  <pre><code>library(qrcode)
  
  for(i in 1:2000) {
  png(paste0(names[[1]][[i]],".png"))
  qrcode_gen(names[[1]][[i]])
  dev.off() }
  </code></pre>
  
  <p>But I wasn't able to create a list with all qrcodes and control the size of the figures.</p>