Closed Felixmil closed 1 year ago
@PavelBal I have a similar issue than yesterday. On Appveyor, difference is detected in svg code but the plots looks the same. On my computer no diff are detected during test run. Could you please pull this branch and run test / push snapshots if there are somehow different ?
You can run usethis::pr_fetch(484)
to get it.
@Felixmil I have re-created example reports with this version, and for the rare use case where the title has a linebreak the new version actually looks worse:
Other examples, like this, look better:
Any chance to either a) make margins dynamic based on the heights of the elements (e.g. the title), or b) set defaults that at least titles with two lines fit in?
I will try to find better default values as it is not possible to retrieve plot element sizes. And also, most of other plots with linebreaks still look fine: https://github.com/esqLABS/esqlabsR.reports/pull/13/files#diff-960fdfdacdbd3571e10c5ceaf37507efeb1a49d7d57695626e55266063e22144
However for special cases like this, I would use the ability to customize margins around text (that is implemented in tlf in this branch but still needs to be implemented in osps afterward) or reduce legend/title text size
@Yuri05 Ugrading the R_VERSION
to the latest available (e.g 4.3.1 vs 4.1 defined before) for AppVeyor configuration solved the difference in snapshots. This is because some package implicated in the .svg
generation changed between these two R versions.
What is the right thing to do here, keep the updated R_VERSION
in Appveyor or setting my development environment back to 4.1 ?
setting my development environment back to 4.1 ?
Would be very uncomfortable..
@Yuri05 Ugrading the
R_VERSION
to the latest available (e.g 4.3.1 vs 4.1 defined before) for AppVeyor configuration solved the difference in snapshots. This is because some package implicated in the.svg
generation changed between these two R versions.What is the right thing to do here, keep the updated
R_VERSION
in Appveyor or setting my development environment back to 4.1 ?
update appveyor version to "4.3.1" :) (same for ospsuite-R and ospsuite.utils if not done yet)
update appveyor version to "4.3.1" :) (same for ospsuite-R and ospsuite.utils if not done yet)
But the R version in the DESCRIPTION
file must stay the same ?
But the R version in the
DESCRIPTION
file must stay the same ?
I would say: yes (or are we aware of any reasons why tlf should not work with R 3.6?)
I would say: yes (or are we aware of any reasons why tlf should not work with R 3.6?)
It will work and is ok as long as we don't expect outputs generated across R versions to be identical.
It will work and is ok as long as we don't expect outputs generated across R versions to be identical.
that's fine; let's keep the version AS IS than :)
Texts come with good default margins (defined in
minimalTheme
) but they can also be customized inLabel
objects