Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
vlulla opened this issue Jul 11, 2018 · 0 comments · Fixed by #3598
Closed

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

vlulla opened this issue Jul 11, 2018 · 0 comments · Fixed by #3598
Milestone

Comments

@vlulla
Copy link
Contributor

@vlulla vlulla commented Jul 11, 2018

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants