5</span><span class="op">$</span><span class="fu">close_all</span><span class="op">(</span><span class="op">)</span></span></code></pre></div>
<p>As a rule - it is recommended to work in the following fashion. Open
a file with <strong>H5File$new</strong> and store the resulting R6-class
object. Do not discard this object. The current default behavior is to
close the file, but not the objects inside the file if the garbage
collector is triggered. This is done in order not to interfere with
other open objects