I usually run a lot of simulations, mainly statistical ones. Therefore, I use R language most of the time. My laptop has been great till last month or so, my simulations started taking abnormal time to finish. I decided to get a new machine with good RAMs and CPU etc. I downloaded R and Rstudio after I downloaded Windows 11 pro and no other softwares. I am surprised that this new PC is slow too regardless the cutting edge parts I put in it.
I know for fact that my coding skills not great, yet I have tried my best to optimize the code and lately I discovered that the problem is not the efficiency of my code.
I was complaining to a friend of mine about this situation and asked him to run my code on his machine. Interestingly, his machine managed to run the entire exact code in a few hours while it takes days on my machine. His R version is much older than 4.2.1 which I am using on my PC.
I am not sure if this is the right place to seek help for such problems. Your help is appreciated