Skip to content
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

frollmax3: partial arg #5891

Open
wants to merge 2 commits into
base: frollmax2
Choose a base branch
from
Open

frollmax3: partial arg #5891

wants to merge 2 commits into from

Conversation

jangorecki
Copy link
Member

  • support of partial argument

@jangorecki jangorecki changed the base branch from frollmax2 to master January 8, 2024 15:01
@jangorecki jangorecki requested a review from mattdowle as a code owner January 8, 2024 15:01
@jangorecki jangorecki changed the base branch from master to frollmax2 January 9, 2024 07:06
@MichaelChirico
Copy link
Member

PR description needs more detail -- imagine coming back to this PR in 10 years trying to figure out context. What's partial? Why did we add it?

A quick sentence + issue link would suffice.

partial2adaptive = function(x, n, align) {
if (align=="center")
stopf("'partial' cannot be used together with align='center'")
if (is.list(x) && length(unique(vapply(x, length, 0L)))!=1L)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (is.list(x) && length(unique(vapply(x, length, 0L)))!=1L)
if (is.list(x) && uniqueN(lengths(x)) != 1L)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants