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

More flexible infrastructure with something like load_urls()? #223

Closed
mrcaseb opened this issue Sep 25, 2023 · 5 comments
Closed

More flexible infrastructure with something like load_urls()? #223

mrcaseb opened this issue Sep 25, 2023 · 5 comments

Comments

@mrcaseb
Copy link
Member

mrcaseb commented Sep 25, 2023

Thinking about a function that loads a small file in which we maintain the actual download urls so we can change them without having to change nflreadr code.

@tanho63
Copy link
Member

tanho63 commented Oct 16, 2023

Hmm, thinking about this on second pass and I think I’d want to have the documentation and function args the way we have it now? It wouldn’t simplify our file structure, in that case. Maybe we’d be able to programmatically access file names but piggyback/nflverse_download allows us do that too?

@mrcaseb
Copy link
Member Author

mrcaseb commented Oct 16, 2023

I think I wasn't clear enough. I was thinking about an internal function that returns the download url for the loading function. Nothing user facing.
So we would run something like load_url("pbp") and it returns "https://github.com/nflverse/nflverse-data/releases/download/pbp/play_by_play_" which we use in load_pbp

It would allow us to redirect loaders without having to change and/or release nflreadr.

@tanho63
Copy link
Member

tanho63 commented Oct 16, 2023

It would allow us to redirect loaders without having to change and/or release nflreadr.

I like the version-controlled aspect of the current setup and hesitate to get rid of that but I think a csv of the URL fragments might be suitable if you want something programmatic

@mrcaseb
Copy link
Member Author

mrcaseb commented Oct 16, 2023

Yeah we could version control the csv inside the nflreadr repo. It's not a strong opinion. Just thinking about more flexibility, especially given the recent problems with CRAN incoming checks. Lower number of releases means less pain for us.

@tanho63
Copy link
Member

tanho63 commented Mar 27, 2024

Closing as not-planned

@tanho63 tanho63 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 27, 2024
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