installing lubridate in R

I downloaded RStudio following the hands-on activity in week 1, but I cannot install the "lubridate" package, for some reason. It keeps giving me this message:

I then say "yes" and the following error message keeps appearing:

I would really appreciate some help. I cannot use the "tidyverse" package without the "lubridate" one.

Try answering No to the question about installing from Source.

The easiest solution would be to answer "no" to this question, you would get a precompiled binary version that is a little older but much easier to install.
If you need to install the latest version from source, then you need to install Xcode in your system (not in R) and the recommended development tools for macOS systems.
https://mac.r-project.org/tools/

thank you very much!

thank you! it worked