This is a test version of Biostars. For the public version, visit https://www.biostars.org.
downloading and running tidyverse package in R

Hi, I'm trying to download the package 'tidyverse' in R studio for rna seq analysis. This will allow me to transfer Kallisto results into R.

I have used the following command: install.packages("tidyverse"). However, I get the following error message when I try to run the function library(tidyverse): Error in library(tidyverse) : there is no package called ‘tidyverse’.

I also tried the install packages option in r studio.

If anyone knows how to install this package please let me know.

Thankyou

seq analysis tidyverse rna

It would be more informative if you included the error you have when running install.packages("tidyverse")

I get the following error message:

Error in library(tidyverse) : there is no package called ‘tidyverse’.

Read my question carefully please, this is the error you get when running library(tidyverse)

Apologises please see below:

There is a binary version available but the source version is later:
          binary source needs_compilation
tidyverse  1.3.1  1.3.2             FALSE

installing the source package ‘tidyverse’

trying URL 'https://cran.rstudio.com/src/contrib/tidyverse_1.3.2.tar.gz'
Content type 'application/x-gzip' length 702514 bytes (686 KB)
downloaded 686 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(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
      namespace 'rlang' 0.4.12 is being loaded, but >= 1.0.2 is required
    Calls: <Anonymous> ... namespaceImport -> loadNamespace -> namespaceImport -> loadNamespace
    Execution halted
    ERROR: lazy loading failed for package 'tidyverse'
    * removing 'C:/Users/Mariam/Documents/R/win-library/4.1/tidyverse'
    Warning in install.packages :
      installation of package ‘tidyverse’ had non-zero exit status

The error is pretty clear : "namespace 'rlang' 0.4.12 is being loaded, but >= 1.0.2 is required". You need to update rlang : install.packages("rlang")

I managed to load the package. Thanks for your help.

What operating system are you using? I had a similar problem using a Linux distribution, and it turned out that I needed to have Debian R installed instead of Ubuntu R.

You have not installed "tidyverse" package completely yet. It may be due to the network or proxy issues. Better to take a screenshot on error message and attach it here.

Thanks for your help. This is the error message I get after I run the command install.packages("tidyverse")

There is a binary version available but the source version is later:
          binary source needs_compilation
tidyverse  1.3.1  1.3.2             FALSE

installing the source package ‘tidyverse’

trying URL 'https://cran.rstudio.com/src/contrib/tidyverse_1.3.2.tar.gz'
Content type 'application/x-gzip' length 702514 bytes (686 KB)
downloaded 686 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(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  namespace 'rlang' 0.4.12 is being loaded, but >= 1.0.2 is required
Calls: <Anonymous> ... namespaceImport -> loadNamespace -> namespaceImport -> loadNamespace
Execution halted
ERROR: lazy loading failed for package 'tidyverse'
* removing 'C:/Users/Mariam/Documents/R/win-library/4.1/tidyverse'
Warning in install.packages :
  installation of package ‘tidyverse’ had non-zero exit status

0 answers

No answers yet.

Log in to answer this question.