Add a quick fix to ensure R temp directory has correct permissions