Check out example codes for "r load packages". It will help you in understanding the concepts better.
Code Example 1
# Basic syntax: library(package_to_load) # Note, the package has to be installed before you can load it # Note, when you install a package, the package name has to be in quotes # but when you load it, it shouldn't be
Learn ReactJs, React Native from akashmittal.com