In this tutorial, we will learn the basic syntax of R language. We will go through the key components of a simple R program.
print("Hello, World!")
[1] "Hello, World!"
print("Hello, World!")
print
function to output the string "Hello, World!" to the console or standard output.;
), but it's typically optional.print
and Print
would be considered different.#
for single-line comments or /* ... */
for multi-line comments.