In the previous PR (https://github.com/johnmyleswhite/RDatasets.jl/pull/62) I was inattentive while writing the IO handling: When providing data from a CSV the file wasn't properly closed, but relied on the finalizer to do so. This PR fixes the behaviour by using a do construct.
In the previous PR (https://github.com/johnmyleswhite/RDatasets.jl/pull/62) I was inattentive while writing the IO handling: When providing data from a CSV the file wasn't properly closed, but relied on the finalizer to do so. This PR fixes the behaviour by using a
do
construct.