When using threads::shared what happens with package variables
across threads? The docs make it clear that lexical variables have to
be shared or they will be copied. But it says nothing about package variables.
Since all data is copied in different threads, I'm not
sure:
whether shared is reserved for lexical variables
whether different things occur for package variables based on
whether or not they are shared