title: Error converting Raster to Spatial Points Dataframe in R
body: <p>I am trying to convert a <code>.TIF</code> file to a spatial points data frame in R. My code was working but something seems to have changed and now I am getting the error:</p>
  
  <pre><code>Error in .availableRAM(maxmem) : object '_raster_availableRAM' not found
  </code></pre>
  
  <p>Here is my code block:</p>
  
  <pre><code>dem &lt;- raster('../scratch/DEM.tif')
  
  dempts &lt;- as(dem, 'SpatialPointsDataFrame')
  </code></pre>