Rapporter / pander

An R Pandoc Writer: Convert arbitrary R objects into markdown
http://rapporter.github.io/pander/
Open Software License 3.0
294 stars 66 forks source link

issue with pander.mtable #244

Closed spedygiorgio closed 8 years ago

spedygiorgio commented 8 years ago

I fit three regression models (pc1wkPE, pc1wkVC, pc1wkNI) then generated an mtable object

oneweekModels <- mtable('PE backed' = pc1wkPE, 'VC backed' = pc1wkVC, 'Normal Ipo' = pc1wkNI, summary.stats = c('R-squared','F','p','N'))

When running pander(onedayModels) I got Error in dimnames(x$coefficients)[[3]] : subscript out of bounds

RomanTsegelskyi commented 8 years ago

Thanks for reporting the issue. Can you post pc1wkPE, pc1wkVC, pc1wkN, so we can have a reproducible case?

melff commented 8 years ago

Dear all, since memisc 0.99, the structure of "mtable" objects has changed, so that pander.mtable() is likely to be broken. I'll try to create a patch for this issue in the next days. Best, Martin

spedygiorgio commented 8 years ago

I confirm that mmelf fix closes this issues. I do suggest to integrate the fix in the next release of the package.