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

option to overwrite registry file #262

Open
nick-youngblut opened this issue Jun 12, 2020 · 4 comments
Open

option to overwrite registry file #262

nick-youngblut opened this issue Jun 12, 2020 · 4 comments

Comments

@nick-youngblut
Copy link

I have to specify a directory for makeRegistry due to #237, but I always get a File at path already exists: error if I try to re-run the makeRegistry function. It would be helpful to have an option to overwrite the existing directory

@nick-youngblut
Copy link
Author

Another, likely better option, would be to just create a new subdirectory within the user-specified directory for each run. A UUID could be used for the subdirectory name

@nick-youngblut
Copy link
Author

Also, it appears that makeRegistry() doesn't use recursive = TRUE for dir.create

@jakob-r
Copy link
Collaborator

jakob-r commented Jun 15, 2020

I think this it out of scope for batchtools because it is a potentially subjective choice what the best approach is. You could just handle it yourself by writing a function generate_my_registry_dir("path/to/file") that performs the actions you like and returns the path to the desired registry (e.g. a subdirectory within path/to/file).

@nick-youngblut
Copy link
Author

That would require one to always create the function or source it. Optional parameters provide the user with the option to select one subjective choice or another. It was just a suggestion, but it's really only for convenience, so it's not a big deal.

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

2 participants