Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pkg_load() for loading and install packages #524

Closed
wants to merge 2 commits into from
Closed

Add pkg_load() for loading and install packages #524

wants to merge 2 commits into from

Conversation

joan-yanqiong
Copy link

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!

@gaborcsardi
Copy link
Member

Thanks! Installing and loading a package are two fundamentally different operations, so we are not going to support doing both at once, sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants