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

Proposed Overhaul of the Package and Functionality #49

Open
4 of 14 tasks
chantelwetzel-noaa opened this issue Oct 13, 2021 · 2 comments
Open
4 of 14 tasks

Proposed Overhaul of the Package and Functionality #49

chantelwetzel-noaa opened this issue Oct 13, 2021 · 2 comments

Comments

@chantelwetzel-noaa
Copy link
Contributor

chantelwetzel-noaa commented Oct 13, 2021

Overview

Now that the 2021 assessment cycle is coming to a close, I would like to propose an overhaul of the package to create additional functionality and improve the ease of use. The existing code and package is similar to the code created 10+ years ago. Updating the code to improve usability and readability of the code if long overdue.

Intended Outcome

The goal would be to create robust function calls that allow the user to pull, process, and preview data with just a few lines of code.

Proposed Actions

Future Ideas

An area to table any of the proposed actions if needed.

@kellijohnson-NOAA
Copy link
Contributor

@chantelwetzel-noaa I love the organization and clear statement of goals here. I am wondering if we can edit the "Intended Outcome" to be

create robust function calls that allow the user to pull, process, and preview data with just a few lines of code

I think this is a great mission statement and we could organize functions into these three groups

  • pull
  • process
  • preview

I am even wondering if we should use the first four letters as the beginning of function names, e.g., pull_base pull_catch. You might not want that level of prescription in the naming structure though. And instead, we could use the @family capabilities of roxygen to categorize and group functions together.

@chantelwetzel-noaa
Copy link
Contributor Author

chantelwetzel-noaa commented Oct 15, 2021

@kellijohnson-NOAA This issue was written with you in mind! My thinking so far was to create clear grouping of functions via the function name (e.g. pull_catch()). I have not fully worked out the 'right' name grouping for the different processes but the ones you suggested are in line with my thoughts. Here is so rough ideas of what I was thinking:

  • pull_: download various data products from data warehouse
  • process_: calculate data products (e.g., indices, composition data)
  • plot_, preview_: create data plots
  • get_, 'do_': wrapper function that will bundle steps (e.g., process_ and plot for a data type/s, pull_ for both catch and biological samples)
  • other functions: need to identify a naming structure for worker functions that are called within functions but are not typically called independently.

I know renaming functions can create challenges for established users but hopefully with good documentation and clear naming structure and flow will alleviate these challenges.

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

No branches or pull requests

2 participants