-
Notifications
You must be signed in to change notification settings - Fork 110
feat: change defaults of master and layout arg in add_slide(), add layout_default()
(#635)
#644
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
base: master
Are you sure you want to change the base?
feat: change defaults of master and layout arg in add_slide(), add layout_default()
(#635)
#644
Conversation
`layout_default()` sets a default layout for `add_slide()`
`print.rpptx` now uses pluralization and marks the default layout (if set by `layout_default()`) with an asterisk (davidgohel#635)
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #644 +/- ##
==========================================
+ Coverage 86.42% 86.54% +0.11%
==========================================
Files 43 43
Lines 7235 7283 +48
==========================================
+ Hits 6253 6303 +50
+ Misses 982 980 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@markheckmann thanks, I will not be able to work on the PR this week, hopefully next week I will try to avoid this breaking changes. We can totally afford changing flextable or autoslider.core but there are lot of scripts in companies that will be affected and we must not break their codes. |
okay, then I suggest the following modification to avoid potential breaking changes for user code. @davidgohel Please let me know, in case you have any doubts or further suggestions New approach We maintain the current This approach should not cause any revdep issues and also no problem in user code. I will make the changes and check the former. |
To avoid breaking changes in old code, `read_pptx()` automatically sets the default layout `"Slide and Content"`, if it exists. This makes sure, that the behavior of `add_slide()` does not change.
Updated PRHi @davidgohel , I updated the PR as follows: Summary
Changes1.
|
Summary
Hi @davidgohel , this PR closes #635:
add_slide()
: remove default settings for argslayout
andmaster
layout_default()
: new function to set a default layout foradd_slide()
revdeps: Luckily, there are only 2 revdep problems, both easy to fix (however, 11 pkgs failed to check). Please find the complete revdep results at the bottom. Once this PR is accepted, I am happy to submit patch PRs for both packages (
flextable
&autoslider.core
) affected by the{officer}
0.6.9 release, if you like.Changes
1.
add_slide()
: removing default settings for argslayout
andmaster
add_slide()
requires arglayout
nowmaster
is only required, if thelayout
is not unique across mastersbefore
after
Created on 2025-03-29 with reprex v2.0.2
2.
layout_default()
to set (and unset) a default layout foradd_slide()
print.rpptx
now indicates if a default layout is set:Created on 2025-03-29 with reprex v2.0.2
revdep checks
I checked the source code of all packages listed under
failed to check
manually to see ifadd_slide()
was used without an explicit layout name. This was not the case, so there should be no problems in these packages.