Execute R code online
Use RPubs to publish R code
If the data is public and you want to show off your R skills you can use rpubs directly
You'll need to install the knitr package (v0.5 or later), there is a mini-tutorial just after registration
Use RStudio Cloud to publish private code.
There is a 'Cloud' version of RStudio, perfect for a quick demo. For more serious work, there is some dedicated plans.
Create an account here https://rstudio.cloud/
Use GoogleColab for collaborative work
This is a little-known option but it's possible to use R inside GoogleColab
Start rmagic by executing this in a cell:
Then start your script by %%R
to execute
more details about this feature
Native R on GoogleColab
you can switch runtime from Python to R in the options and execute native code directly
( tested in may 2024 )
Execute R code on GitHub
Last updated