In R there is now a function to load packages called use() (from version 4.4.0 onwards). There are of course already library() and require(), but I strongly recommend using use(), or at least understand why it exists and adjust how you use library() accordingly.