Tidyverse Installation Error on Ubuntu 20.04 LTS

Hi RStudio Community,

I am attempting to install Tidyverse in RStudio ver 4.1.0 on Ubuntu 20.04 LTS. However the install is breaking at the 'dtplyr' package and will not complete. I had raised a new Issue at the Tidyverse Github repo, but Hadley suggested I post directly into here.

R was installed using the Ubuntu packagement management system after adding the CRAN repository and RStudio was per the instructions at RStudio.

System info, as required:

R Version, Ubuntu Terminal
### R Version, Ubuntu Terminal
quid@rvnmn00 ~ R --version
R version 4.1.0 (2021-05-18) -- "Camp Pontanezen"
Copyright (C) 2021 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 the terms of the
GNU General Public License versions 2 or 3.
For more information about these matters see
https://www.gnu.org/licenses/.
RStudio Version
R version 4.1.0 (2021-05-18) -- "Camp Pontanezen"
Copyright (C) 2021 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.

  Natural language support but running in an English locale

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.

[Workspace loaded from ~/.RData]
Session Info
> sessionInfo()
R version 4.1.0 (2021-05-18)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.2 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.9.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.9.0

locale:
 [1] LC_CTYPE=en_NZ.UTF-8       LC_NUMERIC=C               LC_TIME=en_NZ.UTF-8        LC_COLLATE=en_NZ.UTF-8     LC_MONETARY=en_NZ.UTF-8   
 [6] LC_MESSAGES=en_NZ.UTF-8    LC_PAPER=en_NZ.UTF-8       LC_NAME=C                  LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_NZ.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] compiler_4.1.0 tools_4.1.0
Current Repository
> getOption("repos")
                         CRAN 
"https://cloud.r-project.org" 
Install DTPLYR
> install.packages("dtplyr")
Installing package into ‘/home/quid/R/x86_64-pc-linux-gnu-library/4.1’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/dtplyr_1.1.0.tar.gz'
Content type 'application/x-gzip' length 111895 bytes (109 KB)
==================================================
downloaded 109 KB

* installing *source* package ‘dtplyr’ ...
** package ‘dtplyr’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in readRDS(nsInfoFilePath) : error reading from connection
Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace -> readRDS
Execution halted
ERROR: lazy loading failed for package ‘dtplyr’
* removing ‘/home/quid/R/x86_64-pc-linux-gnu-library/4.1/dtplyr’
Warning in install.packages :
  installation of package ‘dtplyr’ had non-zero exit status

The downloaded source packages are in
	‘/tmp/RtmpU1ftcc/downloaded_packages’

Happy to test any variable change, or Add/Remove packages as required.

Thank you, Quid Agis.

P.S. I installed the 'reprex' and 'styles' package but reprex()was no help.

This issue has been resolved.

I reinstalled Ubuntu 21.04 and successfully installed R, RStudio and Tidyverse. Clearly there was something broken but I was unable to identify it.

Tidyverse is great!

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.