r-scripts for ecopuck