title: Using as.hexmode with R
body: <p>I have some R code:</p>
  
  <pre><code> writePoint &lt;- page * 2^12 + offset
   localCount&lt;-0
   instructions &lt;- 0
   while(localCount &lt; lengthI$length) {
      cat("&lt;instruction address=\"")
      cat(as.hexmode(writePoint))
  </code></pre>
  
  <p>However <code>writePoint</code> is always written as a decimal number. What am I doing wrong?</p>