Why Nostr? What is Njump?
2024-06-26 21:17:55

npub1qs…7tvmc on Nostr: Wouldn't it be neat if we as #RStats package developers could declare that some of ...

Wouldn't it be neat if we as #RStats package developers could declare that some of the exported functions should not be attached by library()? Something like this:

> library(somepkg)
> hello()
hello world
> bye()
Error: object 'bye' not found

while you can still call:

> somepkg::bye()
bye bye

We can achieve this by adding a single line to base::library(), such that the package can declare bye() to be excluded when attached;

.packageExclude <- c("bye")

See https://github.com/HenrikBengtsson/Wishlist-for-R/issues/165
Author Public Key
npub1qs42ufp4tcaf4yyd86sylfn8czprgeksl5872c2dj4ccedmjf3vql7tvmc