aloftdata / getRad

R package to access and standardize radar data
https://aloftdata.github.io/getRad/
Other
0 stars 0 forks source link

Should the package version be part of the user agent string #4

Closed bart1 closed 1 month ago

bart1 commented 1 month ago

I try to consistently set the user agent so requests through the package can be tracked. Would it be useful to add the package version number or commit here? If so how to keep that up to date.

SVN used to have something called keywords that could do this, maybe git has something similar

peterdesmet commented 1 month ago

Do you do that (and if so how) for move2?

There is probably an easy function to access the installed package version (so it’s not hardcoded), I don’t know the best way to pass it. A getRad@1.0 string?

bart1 commented 1 month ago

great idea getNamespaceVersion can do this, might be a bit messy with dev version but I think that is ok