Typically, when starting up an renv project, one gets a message that looks something like this:
* Project '~/path/to/project' loaded. [renv 0.10.0]
I am trying to suppress this message, particularly when non-interactively running a script from this project.
Checking the package help, I noted ?config
i.e. User-Level Configuration of renv. Specifically, I found synchronized.check
, of which the document states is for controlling how renv lockfile synchronization is checked (this is also outputted to the console). However, I couldn't find how to control the main startup message. I also checked the ?settings
but found nothing relevant either.
I've tried fiddling with options
and Sys.setenv
without luck so far.
So, is it possible to suppress the message, seeing that the renv script activate.R
controls how the package itself is loaded?
You are correct that there isn't a specific documented way to configure this in
renv
. For now, you can set:before
renv
is loaded. (You may want to turn it back toTRUE
if you wantrenv
to display other messages as part of its normal work.)