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

with_temp_package() #3

Open
jimhester opened this issue Aug 14, 2015 · 0 comments
Open

with_temp_package() #3

jimhester opened this issue Aug 14, 2015 · 0 comments
Labels
feature a feature request or enhancement
Milestone

Comments

@jimhester
Copy link
Member

Make use of https://github.com/gaborcsardi/disposables

with_temp_package <- function(packages, code, ...) {
  pkg <- disposables::make_packages(packages, ...)
  on.exit(disposables::delete_packages(pkg))
  force(code)
}
@jimhester jimhester added this to the 0.2.0 milestone Sep 17, 2015
@jimhester jimhester added the feature a feature request or enhancement label May 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant