Skip to content

find_varying() does not recursively look along call objects #134

Closed

Description

@DavisVaughan

Currently, we only loop through the top level of the call, but I think we can easily recursively search along it. In fact, I think we can combine the recursive approach of lists/vectors and the call/pairlist loop.

suppressPackageStartupMessages(library(parsnip))
parsnip:::find_varying(
  rlang::call2("list", x = list(xx = varying()))
)
#> [1] FALSE

parsnip:::find_varying(
  rlang::call2("list", x = varying())
)
#> [1] TRUE

Created on 2019-01-25 by the reprex package (v0.2.1.9000)

Activity

  1. github-actions commented on Mar 9, 2021

    @github-actions
    Contributor

    This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.

  2. locked and limited conversation to collaborators on Mar 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions