nmSuppressMsg: Respect suppress messages for nlmixr2 C functions

View source: R/utils.R

nmSuppressMsgR Documentation

Respect suppress messages for nlmixr2 C functions

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

nmSuppressMsg()

Value

Nothing

Author(s)

Matthew Fidler

Examples


# nmSupressMsg() is called with nlmixr2()

# In nlmixr2, 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 nlmixr2 in other packages, you can use
# this function

nlmixr2est documentation built on Oct. 30, 2024, 9:23 a.m.