add refs for R and plyr