There are a variety of hardware and software options and combinations available to you. While there are few concrete rules, here is an attempt to guide your success.
Resources for thinking about open and reproducible scientific computing.
Formost, code should be written so someone else could easily run. This means they have access and can understand.
1) Code should be in a Github repository
2) Organize your data and code.
Working with Git and RStudio on Raven
related - getting a Personal Access token - https://d.pr/i/lS8UAr
Packaging data analytical work reproducibly using R (and friends)