khis-configuration {khisr} | R Documentation |
Some aspects of khisr behaviour can be controlled via an option.
with_khis_quiet(code)
local_khis_quiet(env = parent.frame())
code |
Code to execute quietly |
env |
The environment to use for scoping |
No return value, called for side effects
No return value, called for side effects
No return value, called for side effects
The khis_quiet
option can be used to suppress messages form khisr. By
default, khisr always messages, i.e. it is not quiet.
set khis_quiet
to TRUE
to suppress message, by one of these means,
in order of decreasing scope:
Put options(khis_quiet = TRUE)
in the start-up file, such as .Rprofile
,
or in your R script.
Use local_khis_quiet()
to silence khisr in a specific scope.
Use with_khis_quite
to run small bit of code silently.
local_khis_quiet
and with_khis
follow the conventions of the
withr package.
# message: "The credentials have been set."
khis_cred(username = 'username', password = 'password')
# suppress messages for a small amount of code
with_khis_quiet(
khis_cred(username = 'username', password = 'password')
)
# message: "The credentials have been set."
khis_cred(username = 'username', password = 'password')
# suppress messages for a in a specific scope
local_khis_quiet()
# no message
khis_cred(username = 'username', password = 'password')
# clear credentials
khis_cred_clear()