make R script usable from CL
bash script for profiling errors