Skip to content

Week 2 Take Home Problems Pull Request#63

Merged
DavidRach merged 7 commits intoUMGCCCFCSR:homework_week2from
A-hedgecock-Flowcore:main
Feb 22, 2026
Merged

Week 2 Take Home Problems Pull Request#63
DavidRach merged 7 commits intoUMGCCCFCSR:homework_week2from
A-hedgecock-Flowcore:main

Conversation

@A-hedgecock-Flowcore
Copy link

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.

@DavidRach DavidRach self-assigned this Feb 16, 2026
```{r}
#| eval: FALSE
# find .fcs files in J drive

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Continuing above example, could add on to the existing path

TargetFolder <- file.path(JDrivePath, "TargetFolder")

@DavidRach
Copy link
Collaborator

Hi @A-hedgecock-Flowcore, started the review, left a few feedback suggestions for alternative approach to setwd(). Will finish reviewing tomorrow.

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.

ExtraFolder

Best-
David

@A-hedgecock-Flowcore
Copy link
Author

A-hedgecock-Flowcore commented Feb 17, 2026

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 file.path() option like in the course! Not sure why I didn't do that- maybe bc it was a drive that I have to connec to each time.

Either way thanks!

@DavidRach DavidRach merged commit 16f7b56 into UMGCCCFCSR:homework_week2 Feb 22, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants