Rendering R Notebook error

Hi! I'm new to R and was trying to render my notebook when this error message came up.

Error in ggplot(Ad, aes(x=TV, y=sales)) : could not find the function "ggplot" Calls: ... handle -> withCallingHandlers -> withVisible -> eval -> eval Execution halted

I have the package ggplot installed and the code itself works. The issue arises when i try to knit to pdf

Did you load the library in your Rmd document ?

Calling library(ggplot2) ?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.