I managed to find an easy solution to have reproducible environment using #Guix time-machine while still coding at the comfort of my own IDE.
I wrote a very short blog post about how to set it up in about 5 minutes along with example codes for R and etc.:
https://mehrad.ai/posts/20251106-reproducible-r-enviroment-using-guix/
This can be used for virtually any programming language and software stack.