The print function can also be used in the R programming language. To print "Hello World", all that needs to be done is to use this function.
print("Hello World")
Also Hello World can be output by typing Hello World directly on the command line.