lubridate install error

Help, please!! I'm new to R. I'm following the instructions given on the class I'm taking and I can't install Lubridate. That's the error it gives me:

library(lubridate)
Error in library(lubridate) : there is no package called ‘lubridate’
library(lubridate)
Error in library(lubridate) : there is no package called ‘lubridate’

You probably need to install the lubridate package by running

install.packages("lubridate")

You can then run library(lubridate) to load the package.
The package installation can also be done in RStudio with the menu Tools -> Install Packages.
The installation only needs to be done once. The loading with library() needs to be done in every R session where you want to use lubridate.

Thank you for your help!!

I tried install.packages("lubridate") and this is what it says:

install.packages(lubridate)
Error in install.packages : object 'lubridate' not found
Session restored from your saved work on 2024-Jun-24 12:04:44 UTC

Notice that there are quotes around lubridate

install.packages("lubridate")
1 Like

You're absolutely right! Thank you!

This topic was automatically closed 7 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.