Issue with my RStudio library(fpp2)

Hi! I have an issue regarding activating library(fpp2). I'm currrently using R4.2.3 and RStudio 2023.03.0+386

#plotting using ggplot

install.packages("ggplot2", dependencies = TRUE)
install.packages("fpp2", dependencies = TRUE)

library(ggplot2)
library(fpp2)

Here is what I ran. There's no problem with ggplot2 but when I ran "library(fpp2)" this is what happens:

library(fpp2)
Error: package or namespace load failed for ‘fpp2’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘timeDate’

Any help would be much appreciated. Thanks!

Try installing the missing package

install.packages("timeDate")

Do you get any error message while doing so?