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

Package data #24

Merged
merged 5 commits into from
Oct 7, 2024
Merged

Package data #24

merged 5 commits into from
Oct 7, 2024

Conversation

cforgaci
Copy link
Contributor

@cforgaci cforgaci commented Aug 31, 2024

I initialised the package data with the city boundary and a couple of other layers of Bucharest. The data is stored as a list with a named element for each layer we want to store (e.g., bucharest$boundary for the layer I added). We can add other layers to that list via the data generation script in data_raw/bucharest.R which will update the package data in data/bucharest.rda when it is run.

If the list becomes too big with all the layers, we can replace the list with separate rda files.

@cforgaci cforgaci added the enhancement New feature or request label Aug 31, 2024
@cforgaci cforgaci self-assigned this Aug 31, 2024
@cforgaci cforgaci linked an issue Aug 31, 2024 that may be closed by this pull request
@fnattino
Copy link
Contributor

fnattino commented Sep 2, 2024

Nice way to serialise data and include it as part of the package! Since this is actually more or less the same data as in testing, maybe this can also replace the testdata as well?

@cforgaci
Copy link
Contributor Author

cforgaci commented Sep 2, 2024

Since this is actually more or less the same data as in testing, maybe this can also replace the testdata as well?

Yes, I think so, because the data is used in the vignettes, on the user side, as well.

@cforgaci cforgaci marked this pull request as ready for review October 7, 2024 10:58
@cforgaci cforgaci merged commit b6a88f4 into main Oct 7, 2024
2 of 8 checks passed
@cforgaci cforgaci deleted the 23-package-data-cf branch October 7, 2024 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Package data
2 participants