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?
I generally run examples listed in help documentation using the
examplecommand with the argumentlocal=TRUEbecause 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, callingexample(":=", package="data.table")works correctly but then creates three variables (DT,sq_col_idx, andsq_cols) in my workspace. Thinking that this was just a unique case with:=I triedexample("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
examplework withlocal=TRUEargument can you please ensure thatexample(":=", package="data.table")removes all the variables it created from the workspace?