Closed lf-araujo closed 6 years ago
The require.package
function that was originally in that code snippet should do that already (and some other functionality your code does no longer do). Note that it says require.package
, which is defined in require.package.R
, and not require
which is in base
.
Did you experience any issues with automatic installation prior to your change to the package? If so, could you change this into a bug report with a clear description of the case in which the function failed?
Besides, you made the pull request against your own GitHub repository, instead of against this master repo. Usually the create pull request functionality automatically selects the correct base version to commit to, did you change any settings in that screen?
Usually the create pull request functionality automatically selects the correct base version to commit to, did you change any settings in that screen?
Ha! I knew I was doing something wrong! So the tool already support installing packages before loading? I will report back with bug report if the issue is still there..
Thanks anyways...
I made a very clean pull request to add the ability to check whether the package is already installed before loading. The problem is I am new to github, and I don't know if the pull reached you. In any case, below is the code if you guys find interesting incorporating it (tested and working locally):