Yes, Just like @Maverik said, It happens when you have used a function that does not exist or in other words, no such function is available in R library.
One trick you can do is while writing the function, write the starting few characters and press ctrl+Enter buttons to see available functions as you type the function for better use and reduce errors.