)</span>
<span class="va">metadataObj</span> <span class="op">&lt;-</span> <span class="fu">new</span><span class="op">(</span><span class="st">"DataObject"</span>, format<span class="op">=</span><span class="st">"eml://ecoinformatics.org/eml-2.1.1"</span>, filename<span class="op">=</span><span class="va">emlFile</span><span class="op">)</span></code></pre></div>
<p>Now add the metadata object to the DataPackage:</p>
<div class="sourceCode" id="cb5"><pre class="downlit sourceCode r">
<code class="sourceCod