Unused argument

Solution: This error sometimes happens because the library() function is located below the line of code where a function is called on from that package. To fix this error, the library() function needs to be moved above the chunk where you use functions from that package. Best practice is to put it an R chunk at the top of your assignment (below the header) where you load all of the required packages for your assignment. See below for an example screenshot.