You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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')
The text was updated successfully, but these errors were encountered: