-
Notifications
You must be signed in to change notification settings - Fork 2
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
avoid general function names #3
Comments
Thanks @BPJandree for starting the discussion on function names. Taking into account our discussion last week, I wanted to make a first proposal incorporating the suggestions made. Proposal for grouping and naming of functions
catalog_entries.R datasets.R
external_resources.R
For the *_add functions, I would suggest to keep both a generic create_entry function that uses a type argument as discussed in #2. For the The name document_add microdata_add |
We may want to rethink some of the names.
I think it would be better to use something slightly less general names than
add
for the main utility I introduced in #2 . For examplepublish
could work.Also, the function
datasets
shares a name with the base Rdatasets
package and could be renamed.I could also image that future users might work on creating R packages and pushing them with
nadar
. In this cease, there is already a functioncreate
in the the standarddevtools
package which creates R packages and so we may want to avoid using the same function naming.Since the
add
function I introduce in #2 always wraps around this create function, we may simply move my suggestions and merge them into thecreate
function and thus of working withcreate
andadd
just work with a singlepublish
function.There may be some other examples, I have not yet looked at everything. A careful review would be good.
The text was updated successfully, but these errors were encountered: