It also allows you to only print out the versions of specified packages (via
the packages
argument) and optionally their recursive dependencies.
For these specified packages (if provided), if a function
xfun_session_info()
exists in a package, it will be called and
expected to return a character vector to be appended to the output of
session_info()
. This provides a mechanism for other packages to inject
more information into the session_info
output. For example,
rmarkdown (>= 1.20.2) has a function xfun_session_info()
that
returns the version of Pandoc, which can be very useful information for
diagnostics.