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

Rename tar_<filetype>() to tar_<pkg>_<data type>() #7

Merged
merged 27 commits into from
Mar 13, 2024

Conversation

Aariq
Copy link
Collaborator

@Aariq Aariq commented Mar 7, 2024

This PR renames tar_geotiff() to tar_terra_rast(). It separates out the format into a new function, format_terra_rast() that returns the output of a tar_format() call. I separated it out so it could accept a filetype argument where users can choose a GDAL driver (from a list of possibilities we have implemented and tested with targets).

I'm thinking maybe we'll end up having tar_ functions like tar_<pkg name>_<data type/class>() with some default storage formats rather than naming the functions after the file type. What do you think?

Somewhat addresses #4

R/tar-terra.R Outdated Show resolved Hide resolved
@Aariq Aariq changed the title Rename tar_geotiff() to tar_terra_rast() Rename tar_geotiff() to tar_terra_rast() and add filetype option Mar 7, 2024
@njtierney
Copy link
Owner

I really like the idea of having tar_<pkg name>_<data type/class>(). I think this will help encourage discoverability for users. Nice one!

R/formats.R Outdated Show resolved Hide resolved
@Aariq Aariq changed the title Rename tar_geotiff() to tar_terra_rast() and add filetype option Rename tar_<filetype>() to tar_<pkg>_<data type>() Mar 12, 2024
@Aariq Aariq marked this pull request as ready for review March 12, 2024 02:41
Aariq and others added 5 commits March 11, 2024 19:43
Merge commit '33a6ca313d2aec15d99fb7553b4a655c949640cc'

#Conflicts:
#	NAMESPACE
#	R/tar-geotiff.R
#	R/tar-shapefile.R
#	man/geotargets-package.Rd
@Aariq
Copy link
Collaborator Author

Aariq commented Mar 12, 2024

Looks good! Thanks!

Copy link
Contributor

@brownag brownag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me!

@njtierney njtierney merged commit ef13606 into njtierney:master Mar 13, 2024
6 checks passed
@Aariq Aariq deleted the rename_funs branch March 13, 2024 16:22
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

Successfully merging this pull request may close these issues.

3 participants