I have messed up with "namespace" and now can't install current version of a package

Hello

I have entered the following command:
sudo su - -c "R -e \"install.packages('tidyverse', repos='http://cran.rstudio.com/')\""

and get the message:

Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  namespace ‘tibble’ 2.1.3 is being loaded, but >= 2.99.99.9014 is required

If I then try to install tibble I get the older version:

> install.packages('tibble', repos='http://cran.rstudio.com/')
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
trying URL 'http://cran.rstudio.com/src/contrib/tibble_2.1.3.tar.gz'
Content type 'application/x-gzip' length 310774 bytes (303 KB)

I think I had tibble version 2.99.99.9014 installed at one point but I'm pretty certain I mistakenly deleted the folder, as opposed to uninstalling it properly, and I do not know how to rectify the problem I have caused. Many thanks for any help.

The current version on CRAN is 2.1.3, so it seems very strange that anything requires 2.99.99.9014, if such a build even exists. Is there any more to the error message? Can you tell which package is throwing that error?

The complete message is:

dave@glang81:~$ sudo su - -c "R -e \"install.packages('tidyverse', repos='http://cran.rstudio.com/')\""

R version 3.6.3 (2020-02-29) -- "Holding the Windsock"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> install.packages('tidyverse', repos='http://cran.rstudio.com/')
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
trying URL 'http://cran.rstudio.com/src/contrib/tidyverse_1.3.0.tar.gz'
Content type 'application/x-gzip' length 712837 bytes (696 KB)
==================================================
downloaded 696 KB

* installing *source* package ‘tidyverse’ ...
** package ‘tidyverse’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  namespace ‘tibble’ 2.1.3 is being loaded, but >= 2.99.99.9014 is required
Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace
Execution halted
ERROR: lazy loading failed for package ‘tidyverse’
* removing ‘/usr/local/lib/R/site-library/tidyverse’
* restoring previous ‘/usr/local/lib/R/site-library/tidyverse’

The downloaded source packages are in
        ‘/tmp/RtmpiGnzE6/downloaded_packages’
Warning message:
In install.packages("tidyverse", repos = "http://cran.rstudio.com/") :
  installation of package ‘tidyverse’ had non-zero exit status
>

So I have assumed that 'tibble' is the package causing the problem. But following your question I searched on "2.99.99.9014" and that has taken to https://rdrr.io/github/tidyverse/tibble/ so I guess that's what I've done - installed a development version at some point? (I was trying to solve a tibble/sf error message I had started receiving on code that previously worked). Thank you for that prompt. I do not know how to resolve it though.

`

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.