Skip to content

Introduce within.qenv #127

Description

@gogonzo

As an alternative to eval_code, within could be a nice way of specifying the code. Most important thing about this function should be substitution of dynamic symbols. We need to be able to have a full control over a call.

qenv <- new_qenv() |> within(qenv, {
  iris2 <- dplyr::filter(iris, {varname} = {as.character(var_value)})
})

eval_code shouldn't be discontinued, as it is still important to have a way of evaluating character or language.

Update:

  • within should have arguments:
    • expr literal R expression
    • code R object containing valid R expression (class - language, expression or character)
    • ... replacement arguments similar to env in substitute

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions