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

working directory for active analyses.R #56

Closed
ZoeMZou opened this issue Dec 11, 2024 · 2 comments · May be fixed by #43
Closed

working directory for active analyses.R #56

ZoeMZou opened this issue Dec 11, 2024 · 2 comments · May be fixed by #43

Comments

@ZoeMZou
Copy link
Contributor

ZoeMZou commented Dec 11, 2024

Hi @venexia,

I noticed that running the active_analyses.R script locally creates a lib folder under the analyses directory instead of the main repo. To work around this, I’ve been temporarily setting the working directory to my local path (setwd("C:\Users\mz16609\post-covid-respiratory")), running the script to generate the active_analyses dataset, and then removing the setwd code before committing. This approach feels a bit clunky—do you have any suggestions for a smoother solution?

I think you mentioned the specify_path script, but I dont know how to use that for the active_analyses.R script.

Best wishes,
Zoe

@ZoeMZou ZoeMZou linked a pull request Dec 11, 2024 that will close this issue
@venexia venexia removed a link to a pull request Dec 12, 2024
@venexia venexia linked a pull request Dec 12, 2024 that will close this issue
@venexia
Copy link
Contributor

venexia commented Dec 12, 2024

Hi @ZoeMZou. I should have mentioned this before. We usually use R projects. Next time you are in Rstudio, click 'New project' in the top right hand corner. You then want to select 'Existing directory' and navigate to post-covid-respiratory and click 'Create project'. This will create a .Rproj file in the directory that you can commit to GitHub. Anytime you want to work on the project, you can click on this file or use 'Open project' in RStudio and it will start an RStudio session with your path as post-covid-respiratory.

@ZoeMZou
Copy link
Contributor Author

ZoeMZou commented Dec 12, 2024

Hi @ZoeMZou. I should have mentioned this before. We usually use R projects. Next time you are in Rstudio, click 'New project' in the top right hand corner. You then want to select 'Existing directory' and navigate to post-covid-respiratory and click 'Create project'. This will create a .Rproj file in the directory that you can commit to GitHub. Anytime you want to work on the project, you can click on this file or use 'Open project' in RStudio and it will start an RStudio session with your path as post-covid-respiratory.

Great, thanks Venexia! Have set the project directory in Rstudio.

@ZoeMZou ZoeMZou closed this as completed Dec 12, 2024
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

Successfully merging a pull request may close this issue.

2 participants