Skip to content
Prev 61009 / 63421 Next

sessionInfo() errors when an attached package is removed from the library

Hello everyone,

I noticed that sessionInfo() results in an error when you remove a package
from the library that was previously attached:

library(xyz)
If it was only loaded, only "loaded via a namespace" section fails to print
with the same error message.

Notice that this is not an issue for the {sessioninfo} package that only
warns you in a friendly way that the particular package was removed from
the library, without any errors.

The problem occurs when sessionInfo calls packageDescription on each
package on the search path.

Best,
Jan