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

Create Directories Automatically in Notebooks #257

Open
lh-zhan opened this issue Dec 4, 2023 · 2 comments
Open

Create Directories Automatically in Notebooks #257

lh-zhan opened this issue Dec 4, 2023 · 2 comments
Assignees
Labels
module:dv8 Anything associated to dv8 module type:enhancement New feature or request

Comments

@lh-zhan
Copy link
Collaborator

lh-zhan commented Dec 4, 2023

https://github.com/sailuh/kaiaulu/blob/ffd5f300e0c66c70ccc2beefcb7ab7da9ee9408c/vignettes/causal_flaws.Rmd#L132C1-L132C1

Running this line will result in No such file or directoryError in file(con, "w") : cannot open the connection

We can insert a create directory function above this line, e.g., dir.create(paste0(project_path))

@carlosparadis carlosparadis self-assigned this Dec 4, 2023
@carlosparadis carlosparadis added type:enhancement New feature or request module:dv8 Anything associated to dv8 module labels Dec 4, 2023
@lh-zhan
Copy link
Collaborator Author

lh-zhan commented Dec 5, 2023

Similarly, do the same before this line https://github.com/sailuh/kaiaulu/blob/ffd5f300e0c66c70ccc2beefcb7ab7da9ee9408c/vignettes/text_gof_showcase.Rmd#L140C19-L140C19

@carlosparadis carlosparadis changed the title Directory Doesn't Get Created in Causal Flaw Analysis Notebook Create Directories Automatically in Notebooks Dec 5, 2023
@carlosparadis
Copy link
Member

I think the bigger consideration here relates somewhat to #230, which is thinking through the folder organization more carefully for both rawdata and analysis in Kaiaulu, including reusing files across Notebooks, which your project is an example of.

The config and the project folder organization have evolved a bit since the config was last refactored (neither of these Notebooks even existed then). I will give it some thought. Feel free to add any other references where code breaks due to the absence of not making new folders.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module:dv8 Anything associated to dv8 module type:enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants