Error in installing opening tidyverse: there is no package called ‘timechange’

How do I resolve the following error message? I restarted and quit R and nothing worked.

install.packages("tidyverse")
library(tidyverse)

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

This error occurred after I I re-installed R R-4.2.2.pkg (notarized and signed)
SHA1-hash: 99b8d184f855e630ac950ca4e62cb7fc9a1f7b2e
(ca. 87MB) for Intel Macs.

You are missing this package dependency. What happens if you try to install it?

install.packages("timechange")

Thanks for replying, unfortunately I get the same message

Here's a screenshot:

You should not include install commands on Rmd files. Package installation has to be done interactively on the R console.

Please post the complete console output you get when you run this command on the R console

install.packages("timechange")

Also, please do not post screenshots, they are considered a bad practice here, post the console output as formatted code instead. Here is how to do it:

> install.packages("timechange")

  There is a binary version available but the source version is
  later:

Do you want to install from sources the package which needs compilation? (Yes/no/cancel) Yes
installing the source package ‘timechange’

trying URL 'https://cran.rstudio.com/src/contrib/timechange_0.2.0.tar.gz'
Content type 'application/x-gzip' length 102806 bytes (100 KB)
==================================================
downloaded 100 KB

* installing *source* package ‘timechange’ ...
** package ‘timechange’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.
ERROR: compilation failed for package ‘timechange’
* removing ‘/Library/Frameworks/R.framework/Versions/4.2/Resources/library/timechange’
Warning in install.packages :
  installation of package ‘timechange’ had non-zero exit status

The downloaded source packages are in
	‘/private/var/folders/y0/b0gb_64x7wj8m6hl4xv2mwzh0000gn/T/RtmpjSSHGC/downloaded_packages’
> library(tidyverse)
Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
 there is no package called ‘timechange’

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/

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