written but not tried the, pull and preprocess data from purple robot into R, script