Skip to content

Strange errors when running examples with local=TRUE argument #2972

@vlulla

Description

@vlulla

I generally run examples listed in help documentation using the example command with the argument local=TRUE because I don't like polluting my workspace with variables/functions defined from running examples! So, I tried calling this: example(":=", package="data.table", local=TRUE) which yields an incomprenehsible error! However, calling example(":=", package="data.table") works correctly but then creates three variables (DT, sq_col_idx, and sq_cols) in my workspace. Thinking that this was just a unique case with := I tried example("CJ", package="data.table", local=TRUE) which tells me that it cannot find functionJ.

It appears that these issues are because of the NSE evaluation that data.table uses. If it is too much work to make example work with local=TRUE argument can you please ensure that example(":=", package="data.table") removes all the variables it created from the workspace?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions