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

Change slotname/api from "library" to "package" #15

Open
gmbecker opened this issue Jun 9, 2017 · 1 comment
Open

Change slotname/api from "library" to "package" #15

gmbecker opened this issue Jun 9, 2017 · 1 comment

Comments

@gmbecker
Copy link
Collaborator

gmbecker commented Jun 9, 2017

@mmaechler reached out to me and pointed out that a "library" in R is the set of installed packages which are loadable, and what library calls do, is actually load (and attach) the package. So the api points for setting and retrieving the set of packages used by the script being analyzed should use the package terminology, rather than the library terminology.

There are two possible solutions to this:

  1. Leave the slot as is but create accessors (which we should do anyway) which use the package terminology so that that is what the users actually interact with
  2. Actually change the slot name.

I think 1 would be sufficient but 1+2 would be the more "technically correct" solution, but could break existing code that grabs that slot directly. Code within the package could be search/replaced to be fixed, but scripts would have problems. I'm pretty sure given that the package JUST went on CRAN this would only break @duncantl, @nick-ulle, @clarkfitzg's code and my own code. What are your thoughts on this, guys?

@clarkfitzg
Copy link
Contributor

Change to what you think is best, we'll adapt.

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

2 participants