title: Error in eval(lhs, parent, parent) : object 'countries_sf' not found >
body: <p>When I tried to run the code, for some reason, one of the objects "not found".</p>
  
  <p>I tried to chance the name, run again, but it's always the same error.</p>
  
  <p>The code: </p>
  
  <pre><code>countries_sf &lt;- countries110 %&gt;%
    st_as_sf()
  
  pop_palette &lt;- colorNumeric("viridis",
                              domain = countries_sf$gdp_md_est)
  
  countries_sf %&gt;%
    filter(! name == "Antarctica") %&gt;%
    leaflet() %&gt;%
  </code></pre>
  
  <p>the error message:</p>
  
  <blockquote>
    <p>Error in eval(lhs, parent, parent) : object 'countries_sf' not found</p>
  </blockquote>