In `download_helper`, temp file is only deleted on exit if `download_type == "read"`. This means when used in download_file, the temp file remains. To do: * Move `on.exit` out of if statement * Ensure this is covered in unit tests
In
download_helper, temp file is only deleted on exit ifdownload_type == "read". This means when used in download_file, the temp file remains.To do:
on.exitout of if statement