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

Other patterns for finding required packages #1

Open
noamross opened this issue May 11, 2016 · 6 comments
Open

Other patterns for finding required packages #1

noamross opened this issue May 11, 2016 · 6 comments

Comments

@noamross
Copy link

This is great! I suggest, in addition to looking for packages that are called via library(packagename),
you also look for:

  • require(packagename)
  • packagename::function
  • import::from("packagename", ...)
@calligross
Copy link
Owner

Yes, that's right. I also considered parsing DESCRIPTION.

I adjust the function as soon as I find some time. But I won't be sorry, when someone is quicker. :-)

@ginolhac
Copy link

Might be nice to also look for rstudio add-ins.
Actually I had your great add-in ggThemeAssist before upgrading to 3.3 and reinstallr didn't spot it.
Is it expected?

@calligross
Copy link
Owner

The problem with most add-ins is, that you have no library() etc. call for them in any source files. Those they are hard to spot.

@ginolhac
Copy link

ok @calligross I guess you wish it was easier. Nevermind, your tool is already very handy! Thanks.

@calligross
Copy link
Owner

As a workaround: add for each add-in a library(add-in-package) in a *.R file.

@ginolhac
Copy link

smart, will try to stick to this rule

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

No branches or pull requests

3 participants