-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
optional height and width arguments to the append_plot method #100
Conversation
Code Coverage Summary
Results for commit: a3bfb3f Minimum allowed coverage is ♻️ This comment has been updated with latest results |
testthat::test_that("append_plot accepts a ggplot with a dim", { | ||
testthat::expect_error( | ||
ReportCard$new()$append_plot(ggplot2::ggplot(iris), c(1000L, 100L)), | ||
regexp = NA | ||
) | ||
}) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add a test case with no dim added (what is the expected output) and with wrong dim input.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are already there nevertheless in the lower level PictureBlock class.
I added additional tests to check strictly the size in pixels of the files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested with insightsengineering/teal.widgets#63 (review) and working as expected.
closes #99
add optional height and width arguments to the append_plot method of the ReportCard