Skip to content

Unable to install the latest version of cpp11 #461

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
priyapatel1 opened this issue May 21, 2025 · 4 comments
Closed

Unable to install the latest version of cpp11 #461

priyapatel1 opened this issue May 21, 2025 · 4 comments

Comments

@priyapatel1
Copy link

I've been trying to install cpp11 so that I can use lubridate. However, I keep getting the following issue:

> install.packages('lubridate')
Installing package into/usr/local/lib/R/site-library’
(aslibis unspecified)
Warning: dependencycpp11is not available
also installing the dependencytimechangetrying URL 'https://cloud.r-project.org/src/contrib/timechange_0.3.0.tar.gz'
Content type 'application/x-gzip' length 103439 bytes (101 KB)
==================================================
downloaded 101 KB

trying URL 'https://cloud.r-project.org/src/contrib/lubridate_1.9.4.tar.gz'
Content type 'application/x-gzip' length 429341 bytes (419 KB)
==================================================
downloaded 419 KB

* installing *source* packagetimechange...
** packagetimechangesuccessfully unpacked and MD5 sums checked
** using staged installation
** libs
Error: packagecpp110.1.0 was found, but >= 0.2.7 is required bytimechange* removing/usr/local/lib/R/site-library/timechangeERROR: dependencytimechangeis not available for packagelubridate* removing/usr/local/lib/R/site-library/lubridateThe downloaded source packages are in/tmp/RtmpnwAiWt/downloaded_packagesWarning messages:
1: In install.packages("lubridate") :
  installation of packagetimechangehad non-zero exit status
2: In install.packages("lubridate") :
  installation of packagelubridatehad non-zero exit status
@DavisVaughan
Copy link
Member

Restart R completely and try install.packages('cpp11') first before installing lubridate

@priyapatel1
Copy link
Author

That gives me the following error:

> install.packages('cpp11')
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
Warning message:
package ‘cpp11’ is not available (for R version 3.6.3)

@DavisVaughan
Copy link
Member

cpp11 requires R >=4.0. You will have to update R to be able to use that package. Many R packages in the tidyverse now also require >=4.0, so you are likely going to have more issues if you don't update soon.

@priyapatel1
Copy link
Author

This worked, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants