There is no package

Solution: This error happens because the package has not yet been installed. To fix this error run the install.packages() function in the R console (NOT in the RMarkdown document!!). Then re-load the package using the library() function in the RMarkdown document (NOT in the console!!).