Function today()

I do not understand why when I run the function today(), it says "error in today (): could not find function "today" ", instead of showing me the date of the day as expected

base R has no function called today() though it does have Sys.Date() which give you that info.
There is a commonly used function called today() that is in the lubridate package, so you would need that installed, and in a session in which you wanted to use it either fully name it lubridate::today() or else load the library library(lubridate) and then use it in the normal way today()