In this tutorial, we will learn how to write a Hello World program in R language. We will go through each statement of the program.
print('Hello, World!')
[1] "Hello, World!"
print('Hello, World!')
print
function in R outputs text to the console. The [1]
indicates the position of the printed value in the output.