title: R: How do I add an extra function to a package?
body: <p>I would like to add an idiosyncratically modified function to package written by someone else, with an R Script, i.e. just for the session, not permanently. The specific example is, let's say, <code>bls_map_county2()</code> added to the blscrapeR package.  <code>bls_map_county2</code> is just a copy of the <code>bls_map_county()</code> function with an added <code>...</code> argument, for purposes of changing a few of the map drawing parameters. I have not yet inserted the additional parameters. Running the function as-is, I get the error:  </p>
  
  <blockquote>
    <p>Error in BLS_map_county(map_data = df, fill_rate = "unemployed_rate",  : 
      could not find function "geom_map"</p>
  </blockquote>
  
  <p>I assume this is because my function does not point to the <code>blscrapeR</code> namespace. How do I assign my function to the (installed, loaded) <code>blscrapeR</code> namespace, and is there anything else I need to do to let it access whatever machinery from the package it requires?</p>