moj-analytical-services / xltabr

xltabr: An R package for writing formatted cross tabulations (contingency tables) to Excel using openxlsx
https://moj-analytical-services.github.io/xltabr/
32 stars 6 forks source link

Refactor styles #95

Closed RobinL closed 7 years ago

RobinL commented 7 years ago

I've tried to generalise the code so that it can handle things like row heights without using hacks.

I've added quite a lot of different tests of the new code to make sure it performs as expected and gives the same results as previous iterations of the code (except for where new features have been implemented).

I've also tried to clarify our use of variable names to make the distinction between openxlsx style, our xltabr styles, and the style string we're using. Hoepfully this will make it a bit easier to update in future.

Finally, I've added support for text colour and font inheritence. I think this might not have been implemented before?