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

what to export and what not to export #17

Closed
statsccpr opened this issue Sep 12, 2017 · 3 comments
Closed

what to export and what not to export #17

statsccpr opened this issue Sep 12, 2017 · 3 comments
Labels

Comments

@statsccpr
Copy link
Collaborator

statsccpr commented Sep 12, 2017

now in cleaning / orgnizing mode

i'm thinking a lot of the low level functions should NOT be exported, while some of the higher level functions should be.

Things NOT to export

getstats
benchmarkr
groupR2
get_bias
get_se
get_t
adjust_estimate
t_to_r2

Things to Export

S3method(plot,sensemakr)
S3method(print,sensemakr)
S3method(print,summary.sensemakr)
S3method(sensemakr,lm)
S3method(summary,sensemakr)
export(class_df_from_term)
export(contourplot)
export(interpret)
export(sensemakr)
export(worstcaseinterpret)
export(worstcaseplot)

are users really going to use these directly? I don't think so. Evenmore so, users will not use these functions OUTSIDE of the sensemakr package thru

sensemakr:::benchmarkr(some_non_sensemakr_application)

On the other hand, as argued in #14
some of the plotting functions might be directly accessed by users

https://cran.r-project.org/web/packages/roxygen2/vignettes/namespace.html

@chadhazlett
Copy link
Collaborator

chadhazlett commented Sep 12, 2017 via email

@statsccpr
Copy link
Collaborator Author

statsccpr commented Sep 13, 2017

reduced list of exported functions in this commit
5f81481

these helper functions now share a single documentation page: ?get_bias
709dbe2

@statsccpr
Copy link
Collaborator Author

closing for now, seems like list in initial post is a good final set of not to export vs export,
can revisit if feel otherwise

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

No branches or pull requests

2 participants