title: Read binary file with R
body: <p>I am looking for help to read a binary file with <code>R</code>. </p>
  
  <p>I know the file can be successfully imported in Python with the following code (np for numpy):</p>
  
  <pre><code>dt = np.dtype([('var1', np.uint32), ('var2', np.uint16), ('var3', np.int16), 
  ('var4', np.int16), ('var5', np.int16)])
  data = np.fromfile('filename.DAT', dtype=dt)
  </code></pre>
  
  <p>I, however, don't understand how to use <code>readBin</code> to import this file in <code>R</code>. Any help would be appreciated.</p>