avoid stop due to warning messages by Rscript