title: Error in file(con, "wb") : cannot open the connection
body: <p>Coding in R Studio.
  Trying to replicate the demo outlined here:
  <a href="https://wcmbishop.github.io/rayshader-demo/" rel="nofollow noreferrer">https://wcmbishop.github.io/rayshader-demo/</a>.</p>
  <p>When trying to run his get elevation UDF, I run into the following error:</p>
  <pre><code>&gt; elev_file &lt;- file.path(&quot;data&quot;, &quot;brussels.tif&quot;)
  &gt; get_usgs_elevation_data(bbox, size = image_size$size, file = elev_file,
  +                         sr_bbox = 4326, sr_image = 4326) 
      Error in file(con, &quot;wb&quot;) : cannot open the connection 
  In addition: Warning message: In file(con, &quot;wb&quot;) :    
  Error in file(con, &quot;wb&quot;) : cannot open the connection
  </code></pre>
  <p>I am quite new to R and programming/coding in general, and have no idea what this is trying to tell me. I've looked online, but without much success.</p>