Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Error when interacting with '...': "Promise has already been forced" #99

@MichaelChirico

Description

@MichaelChirico

I wanted to write a helper function to convert fixed strings into a regex like ${PART1}.*${PART2}.*; rex::rex is a natural choice.

But, doing so fails:

combiner <- function(...) paste(sapply(list(...), rex::rex), collapse = ".*")

combiner('a', 'a*b', 'c?d')
# Error in lazyeval::lazy_dots(...) : Promise has already been forced

Is that WAI?

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