use -o option in curl to write to temp file

do not use R's system2 dupint stdout to tmp.