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

Error management and messages #88

Open
plecharpent opened this issue May 29, 2024 · 0 comments
Open

Error management and messages #88

plecharpent opened this issue May 29, 2024 · 0 comments

Comments

@plecharpent
Copy link
Contributor

In stop an optional arg call. may be used for masking the function call before the message specified in the
stop call

From a user point of view the call is not necessary, the main information is the specific message.
To mask the function call message, the call. = FALSE 1may be used.

From a developer point of view the traceback is useful:

  • solution 1: add call. = FALSE to the stop call and use traceback() for getting the trace
  • solution 2: use an environment variable to activate the function call display in the stop error message or use options()
    options(stop_call =TRUE) usable from inside functions (see .onAttach to add it)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant