79391026

Date: 2025-01-27 13:58:16
Score: 1.5
Natty:
Report link

So the answer is to generalize the logic that checks for temporary folders as such:

if (grepl("Rtmp", getwd()))

instead of:

if (grepl("Temp", getwd())) 
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Johannes Schwenzer