Similar to the pacman package, use pkg_load() to first try to load the packages and if they're not installed use pkg_install to install the missing packages.
This is my first time contributing to an R package, so I'm not fully sure how this works. Therefore, I just tried to isolate the pkg_load() function and tried it out, it seemed to work. Though any tips are welcome!
Similar to the pacman package, use
pkg_load()
to first try to load the packages and if they're not installed usepkg_install
to install the missing packages.This is my first time contributing to an R package, so I'm not fully sure how this works. Therefore, I just tried to isolate the pkg_load() function and tried it out, it seemed to work. Though any tips are welcome!