remove if before calling R
cron job line was truncated