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

Developer Code Contributing Guidelines #17

Open
donyunardi opened this issue Mar 29, 2023 · 3 comments
Open

Developer Code Contributing Guidelines #17

donyunardi opened this issue Mar 29, 2023 · 3 comments
Labels

Comments

@donyunardi
Copy link
Collaborator

donyunardi commented Mar 29, 2023

Summary

In order to ensure quality and consistency in our documentation, it would be beneficial to establish some guidelines when contributing code or functions to our products. By doing so, we can empower code contributors to contribute effectively.

Related with findings in insightsengineering/teal.widgets#148 (comment)

Several examples of guidelines

  • Centralize import and importFrom statements in the package.R file instead of in each function file.
  • Include a title and a description in the roxygen notes for every function.
  • Exported functions and objects should have an @example section.
    • If it is wrapped in a \dontrun{}, the example should still be runnable interactively.
  • The appropriate scenario to use import, importFrom, or :: when writing functions.

Tasks

@pawelru
Copy link
Collaborator

pawelru commented Aug 3, 2023

This should be included in the contributor guidelines - example. This file is mass-propagated from the r.pkg.template therefore it should not be a repo-specific. If you want to make any changes - please push it there and ask IDR to help with mass-propagation.

@pawelru
Copy link
Collaborator

pawelru commented Apr 19, 2024

hey @donyunardi can you please update me with the status of this. Can we close it?

@donyunardi
Copy link
Collaborator Author

I don't think we can close this yet because we haven't decided which content we should make public and how we should present it.

I do think we have enough content and agreement based on these past issues:

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

No branches or pull requests

2 participants