You can run R code online using an online compiler, Integrated Development Environment, or IDE. Some options are OneCompiler, IDEOne, RStudio, and Replit.