Skip to content
Prev 33863 / 63424 Next

Suggestion: Allow packages to add additional information to sessionInfo()

On Thu, Sep 3, 2009 at 10:38 AM, Kevin R.
Coombes<krcoombes at mdacc.tmc.edu> wrote:
The point is that (if so) there should only be *one function* to call
for all packages, not one per package, because that would be a pain
due to dependencies.  But, sure I'm happy to start with a
package[s]SessionInfo() such that

c(sessionInfo(), extras=packagesSessionInfo())

pretty much return what I wish. Then it might be easier to argue for
incorporating the above in sessionInfo() ;)

Sorry for not getting it, but I still don't see how adding extra
information would break the base functionality?  Can you give some
examples?

As I said, timeouts can be a problem and possibly also if the hook
functions have side effects that, say, would load new packages, could
give funny results, but I also think a package developer who is
capable to setting up hook function would no how to avoid this.

With the default argument of 'extras' to be FALSE, sessionInfo() would
work as now, with the extra feature that 'extras=TRUE' can give lots
of additional useful information.

/Henrik