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

Feature request: ability to choose the location for the grapho_archive #1

Open
jamestripp opened this issue Feb 28, 2021 · 1 comment

Comments

@jamestripp
Copy link
Member

From Natalie

I think it would be nice if you could tell grapho where you'd like your info storing.

I am envisaging something like

library(grapho)
grapho::init(info_path='path/to/grapho_archive')

@jamestripp
Copy link
Member Author

Thanks for the suggestion.

Implementing this might be a bit tricky. We want the user to be able to analyse data from previous session and, if the folder has been changed, that should be persistent.

Hmm, I think there are three ways we can go.

We create a file in default grapho folder which directs the user to the new location. That is problematic in case the grapho folder if deleted.
A .grapho file is created in the user directory which is checked on loading grapho. If the grapho file is removed then it would shift back to default behaviour.
The grapho folder is set in an environment variable. We can set this file in an .Renviron file. I'm less inclined to do this because it would involve messing with R config files.
I'm inclined to go with the second option. And including a prompt, if possible, in the initial load process on the first loading of grapho for the user to select the grapho folder location. Then, for the moment, have a set_grapho_folder function so the grapho folder can be changed.

Happy to hear your thoughts as I'm a bit on the fence about the best implementation of this.

Thanks again

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

1 participant