Watts-College / paf-513-template

https://watts-college.github.io/paf-513-template/
MIT License
0 stars 0 forks source link

R Running Super Slow when Knitting #26

Open swest235 opened 6 months ago

swest235 commented 6 months ago

@JasonSills

I'm trying to knit my code-through and it seems to almost freeze at 95%. Previously, I would run it intermittently and it worked fine. I've restarted the session and run each code chunk individually (that seemed to take suspiciously long as well). It took about 5 minutes to knit which seems way too long.

Are there any practical steps to take or is this a rabbit hole of possibilities that could be slowing it down?

My computer has 16GB of RAM and is an i7, I wouldn't think it is a hardware limitation.

I am noticing my assignment variables from my dashboard project show up in this session, but the working directory is a different folder. Would that have anything to do with it?

Any thoughts?

image

JasonSills commented 6 months ago

@swest235 - I suspect it is the 600K observations in your data. That's a lot to work through. It's possible that it is related to the cache memory. In a future course, I believe Community Analytics, you will learn how to sample from large datasets for segmentation modeling.