Week 2 Take Home Problems Pull Request#63
Week 2 Take Home Problems Pull Request#63DavidRach merged 7 commits intoUMGCCCFCSR:homework_week2from
Conversation
| ```{r} | ||
| #| eval: FALSE | ||
| # find .fcs files in J drive | ||
|
|
There was a problem hiding this comment.
Alternatively, to avoid forward or backward slashes being fixed in the code, you could rewrite this using the file.path() function.
JDrivePath <- file.path("/Volumes", "Flow Facility", "ayrianna", "Analysis", "Ximena 03202025")
| ```{r} | ||
| #| eval: FALSE | ||
| # Set WD to J drive folder. Note, this could have been done first. | ||
|
|
There was a problem hiding this comment.
In general, I recommend avoiding the setwd() approach, since it breaks code reproducibility if you ever transfer your code to someone else. Rather than having your computer relocate it's location, it's better to build a file.path link to that alternate connection while keeping your computer in the same location.
| ```{r} | ||
| #| eval: FALSE | ||
| # Did seting dir work? | ||
|
|
There was a problem hiding this comment.
In this case, when not using the setwd() approach, you could use the file path (JDrivePath) to point to the remote location.
list.files(path=JDrivePath, full.names=TRUE)
| ```{r} | ||
| #| eval: FALSE | ||
| # Identify New TargetFolder | ||
|
|
There was a problem hiding this comment.
Continuing above example, could add on to the existing path
TargetFolder <- file.path(JDrivePath, "TargetFolder")
|
Hi @A-hedgecock-Flowcore, started the review, left a few feedback suggestions for alternative approach to One thing I did notice, there is one folder that has escaped, can you delete this and save the change as an additional commit. Everything here should automatically update.
Best- |
|
Thanks for the feedback- I watched the youtube videos about not doing that and realized setting the wd like that was probably the worst way to do it. I'll practice the Either way thanks! |
447c58a to
16f7b56
Compare

I've attached the .qmd homework file for Week 2 take home probs. It is self contained in my folder under week 2 homework labelled with my username A-hedgecock-Flowcore.
I tripled checked but I'm still so new! I hope I did everything correctly without affecting the rest of the course.