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

Use evalq and not eval in STUpump #155

Open
ddediu opened this issue Jan 30, 2021 · 0 comments
Open

Use evalq and not eval in STUpump #155

ddediu opened this issue Jan 30, 2021 · 0 comments
Assignees

Comments

@ddediu
Copy link
Owner

ddediu commented Jan 30, 2021

# The safe eval function (use evalq to avoid searching in the current environment):
# [should use used directly in the code not as function call]
#.safe_eval <- function(x) evalq(x, env = .safe_env);

so replace all .safe_eval() by direct calls to evalq(CODE, env = .safe_env)

See the medication groups for a working example

@ddediu ddediu self-assigned this Jan 30, 2021
@ddediu ddediu changed the title Use evalq and not eval in STUpump Use evalq and not eval in STUpump Mar 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant