-
Notifications
You must be signed in to change notification settings - Fork 46
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
Potential improvement on cache dir #223
Comments
Hi - that would be great, could you consider a PR? Also, always welcome to host giscoR in association with rOpenGov for added synergies. Otherwise, we should cross-link in eurostat pkg at least. |
Yes, maybe changing from Though it must be said that in the current implementation this I don't see any problem in changing this behaviour, maybe moving cache functionality out of |
Great feedback @pitkant , I would try to prepare a PR tackling all those comments. @antagomir I am considering your proposal:
Could you please provide more information on this? There are two main topics I am concerned with when transferring repos to organisations:
Regards |
Re: potential transfer:
Interesting to learn about rOpenSpain, this was new! |
Good then! If you grant me access happy to join rOpenGov! Regarding rOpenSpain, is a community of R package developers following the spirit of rOpenSci (the motto is "rOpenSci is our form, Spanish public data our matter"). There is a collection of package that extracts Spanish public data, the webpage is in Spanish: See the packages: https://ropenspain.es/paquetes/ And the r-universe (this one on English): https://ropenspain.r-universe.dev/ui I have a couple of packages included. I also am the webmaster and I developed our pkgdown template. See one of my packages, that leverages on giscoR; |
The rOpenSpain shares a lot in common, the starting point for us was Finnish context but there are now many packages with a cross-border coverage. The mapSpain seems a good match with our geofi pkg for Finnish gis info. It might be useful to look at the possible links more closely later. @pitkant can you check the transfer details with @dieghernan ? |
GitHub's Transferring a repository: Transferring a repository owned by your user account seems to explain the process clearly enough. I will give @dieghernan Owner-level rights in rOpenGov-organization and the transfer should be straightforward after that. |
Aaaand is done! |
Great! We can leave this issue open until you a PR about cache dir functionalities is closed. As a sidenote related to other issues on geospatial functions (e.g. #222 and #213), I should start looking into how Eurostat-package could be improved (and hopefully made more lightweight) by leaning more on separate package, giscoR. |
Hi @antagomir
As you know, I developed
giscoR
as a kind of spatial spin-off ofeurostat
.Recently I have been working on improving the cache dir management (previously set as
options(gisco_cache_dir = "path")
, similar to the desing oneurostat
). Now the cache is set by storing a persistent path using rappdirs::user_cache_dir(), that is loaded as an environment variable at the beginning of the session.That means that
options()
command is not needed, in fact the users don't have to worry about the cache any more, that is managed internally by the package. The cache dir can be modified persistently with a custom function (see https://dieghernan.github.io/giscoR/reference/gisco_set_cache_dir.html for Details).Source code: See https://github.com/dieghernan/giscoR/blob/master/R/gisco_cache.R
If this is something you would like to explore for implementing it also in your package ping me and I could start to have a look on it.
Regards
The text was updated successfully, but these errors were encountered: