Pass the div that includes the gaggle data select element to RScriptWrapper, which will clone it and insert it into the data selection field of R functions.