Skip to content

qenv is not reproducible - library calls #93

Description

@Polkas

qenv is not reproducible as not taking into account libraries from its environment.

library(ranger)
qq <- teal.code::new_qenv() |> teal.code::eval_code("a <- ranger")
# code is not reproducible
teal.code::get_code(qq)
# But the code is evaluated properly
qq[["a"]]

It will be the best to not take blindly all loaded packages in the Session.
Possible we should not use the parent of Globalenv for default environment, and always demand library calls in the code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions