NEWS
htmlreportR 2.0.0
- New: Overhauled whole basic structure, now more closely matches python version. Usage has changed slightly, now rows and columns meant to be names now should also be counted when specifying indices in templates, as they are now treated as regular fields and rows up until drawing the plot. Allowed implementation of the following feature.
- New: "fields" and "rows" arguments may now be added to calls of plotting methods in templates. They allow to reorder and subset data before plotting without altering the original data.
- Change: setting header to TRUE removes the first row specified by "rows" from the actual data frame, setting it as its name. Same goes for row_names and the first column specified by "fields". You might need to update var_attr and smp_attr in your templates after updating if any of these values is set to TRUE.
- Update: "table" method now behaves like the rest, taking options list as argument instead. You will need to update old calls to this method (simply wrap arguments in a list).
- Update: "extract_data" method no longer takes data frame as input, accesses it through hash_vars (reads ID from options list). This method is not public, so it should not have any repercussions in regular usage.
- Update: added make_html_list to general functions. Takes three vectors: contents, levels (optional) and types (optional) and creates an html list with them.
- Fix: plotting methods can now handle a smp_attr field that is encoded in data frame as a factor
htmlreportR 1.0.1
- New: Added prettify_div method to htmlreportR class. Simplifies div style customisation, and comes with some pretty presets.
- New: Added boxplot method to htmlreportR class.
- New: Added reshape method to canvasXpress_obj class. Reshapes canvas data structure to adapt to long and wide formats.
- New: Added script to convert Rmd templates to html, making them compatible with htmlreportR. Relies on a new function (replace_paired_mark) under utils.R
htmlreportR 1.0.0 (2024-08-19)