rxSuppressMsg: Respect suppress messages

View source: R/rxode-options.R

rxSuppressMsgR Documentation

Respect suppress messages

Description

This turns on the silent REprintf in C when suppressMessages() is turned on. This makes the REprintf act like messages in R, they can be suppressed with suppressMessages()

Usage

rxSuppressMsg()

Value

Nothing

Author(s)

Matthew Fidler

Examples


# rxSupressMsg() is called with RxODE()

# Note the errors are output to the console

try(RxODE("d/dt(matt)=/3"), silent = TRUE)

# When using suppressMessages, the output is suppressed

suppressMessages(try(RxODE("d/dt(matt)=/3"), silent = TRUE))

# In RxODE, we use REprintf so that interrupted threads do not crash R
# if there is a user interrupt. This isn't captured by R's messages, but
# This interface allows the `suppressMessages()` to suppress the C printing
# as well

# If you  want to suppress messages from RxODE in other packages, you can use
# this function

nlmixrdevelopment/RxODE documentation built on April 10, 2022, 5:36 a.m.