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

appropriate message/warning suppression #134

Open
npcooley opened this issue Dec 16, 2024 · 1 comment
Open

appropriate message/warning suppression #134

npcooley opened this issue Dec 16, 2024 · 1 comment

Comments

@npcooley
Copy link

Hi,

Would it it be possible to adjust how import handles messages?

I.e. wrapping rtracklayer::import(x) in either suppressMessages() or suppressWarnings() does not provide the intended silencing of import's messages.
Screenshot 2024-12-16 at 1 44 28 PM

@ahl27
Copy link

ahl27 commented Dec 16, 2024

See the following lines:

if (format != NULL) {
fflush(stdout);
vfprintf(stderr, format, args);
fprintf(stderr, "\n");
fflush(stderr);
}

which calls vfprintf rather than standard warning(), error(), message().

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

2 participants