Remove warnings from R CMD check

- changes in `.onLoad`
- add tweaks for empty directories
- don't use `:::` where not necessary