metrumresearchgroup / pmtables

TeX tables for pharmacometrics.
https://metrumresearchgroup.github.io/pmt-book
11 stars 1 forks source link

Adds update method for aligncol objects #315

Closed kylebaron closed 1 year ago

kylebaron commented 1 year ago

This lets you call st_align() or st_center() multiple times in a pipeline.

In the pipeline, we maintain an object with formatting information. Alignment is stored in align as an object with S3 class aligncol. I created an update method for this object. The only hard thing to update is the update slot and there is already a combine_list() function that we use to update items in one list with items in another.

Checklist