title: How does R work with bigints?
body: <p>I have an 18 digit int which R doesn't understand, it returns a different value from what I enter</p>
  
  <pre><code>options(digits = 22)
  &gt; as.numeric(123456789123456789)
  [1] 123456789123456784
  </code></pre>
  
  <p>Also when using bit64 which has an integer64 class</p>
  
  <pre><code>&gt; as.integer64(123456789123456789)
  integer64
  [1] 123456789123456784
  </code></pre>
  
  <p>Are there other packages that can interpret this number correctly?</p>