likert icon indicating copy to clipboard operation
likert copied to clipboard

plyr not loaded prior to using ddply in plot bar w/ percents

Open mjsobrep opened this issue 4 years ago • 1 comments

when plot.percents=TRUE I get error: Error in ddply(results[results$value > 0, ], .(Item), transform, pos = cumsum(value) - : could not find function "ddply"

This is coming from here, I think just putting plyr::ddply in there would fix the problem: https://github.com/jbryer/likert/blob/a7cb925596dd67977a15d9912e3c4783467e8c1e/R/plot.likert.bar.r#L299

mjsobrep avatar Oct 01 '20 04:10 mjsobrep

This is just to say that @mjsobrep is absolutely right. I've just made those changes to a cloned repo, and used that in place of the official dev release of the library and it resolves the issue. See here: https://github.com/jbryer/likert/compare/master...kidwellj:likert:master

kidwellj avatar Apr 18 '23 11:04 kidwellj