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

Can we avoid depending on Rffsa as we only use one function from it? #22

Closed
andrew-edwards opened this issue May 24, 2023 · 3 comments
Closed
Assignees

Comments

@andrew-edwards
Copy link
Member

And it depends on quite a few other packages (I had to install 10 new ones I'd never heard of).
I noticed it looks like only one function is used, so can we just copy that and reference it appropriately to the original package? Will help avoid some random build fail in the future because some dependent package changed.

@travistai2
Copy link
Contributor

Yes for sure. Sorry about that, I agree that the package is unnecessary. I didn't check how many new ones were needed. Also after our discussion about creating the data repository, I realized a few things would have to be changed:

  1. using saveRDS instead of use_data as we're no longer saving these data to a package.
  2. the Rffsa::load_github_data is specific for saved data using use_data. It doesn't seem to work with data that wasn't saved that way.

So we should be able to just save data to the pacea-data repository and load it with get_pacea_data without dependencies.

@travistai2
Copy link
Contributor

Ok the function get_pacea_data should work now. Maybe you can test it @andrew-edwards with e.g. get_pacea_data("roms_surface_oxygen")?

I'm going to write the shortcut functions for each data set and the help files.

@andrew-edwards
Copy link
Member Author

Yes, that function works. Awesome.

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