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

Interactive option to select directories if datadir/outputdir are not provided or do not exist #725

Open
jhmigueles opened this issue Jan 19, 2023 · 1 comment
Assignees

Comments

@jhmigueles
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
For new R users, the first challenge they find is usually the definition of the directories. It may be frustrating for them not being able to use GGIR just because of this.

Describe the solution you'd like
I think providing the opportunity to interactively choose files/directories with utils::choose.files and utils::choose.dir would facilitate the introduction to GGIR. But I'm not sure if this should be extended for the definition of the log paths (sleeplog, activity log, data cleaning file...).

@vincentvanhees
Copy link
Member

vincentvanhees commented Feb 7, 2023

Document in vignettes/github.io how to use

datadir = utils::choose.dir()
# OR
datadir = "C:/folder/data"

GGIR(data = datadir, ...)

Older ideas:

  1. As described above with pop-up window to select path. => for inspiration see also: https://github.com/vincentvanhees/ActChronicFatigue Ideally we should avoid adding new dependencies
  2. Document better how to specify paths.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants