CDORemap: Remove tmp dir in the end
If the parameter "write_dir" in CDORemap() is not specified, it uses tempdir() to create a temporary files under /tmp/
to store the intermediate files. But the folder remains there after the function is called. It should be removed in the end of the function.
CORRECTION:
The tempdir is created when one R session is open, and will be closed when R session has normally exit. So if there is no abnormal exit, we don't need (and maybe shouldn't) delete the tempdir.