There are Integrated Development Environments (IDE) that helps in the process of R development. Among them, a very common one is RStudio