< Language Tutorials

SandCastleIcon.png This article has links to websites or programs outside of Scratch and Wikipedia. Remember to stay safe while using the internet, as we cannot guarantee the safety of other websites.
Note Note: Download R to use it.

This R Tutorial will explain how to create a simple "Hello World" program in both R and Scratch.

Hello World

Here is the first way to print "Hello World!":

print("Hello World!")

If quotes should not be printed, this code can be used:

print("Hello World!", quote = FALSE)

This is the equivalent code to the first way in Scratch:

when gf clicked
say ["Hello World!"]

If quotes are not desired, this code can be used:

when gf clicked
say [Hello World!]
Cookies help us deliver our services. By using our services, you agree to our use of cookies.