downloading and running tidyverse package in R
0
0
Entering edit mode
21 months ago

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 • 4.8k views
ADD COMMENT
3
Entering edit mode

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

ADD REPLY
0
Entering edit mode

I get the following error message:

Error in library(tidyverse) : there is no package called ‘tidyverse’.
ADD REPLY
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode

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
ADD REPLY
1
Entering edit mode

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")

ADD REPLY
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode

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.

ADD REPLY
0
Entering edit mode

I'm using R studio on a Microsoft laptop

ADD REPLY
0
Entering edit mode

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.

ADD REPLY
0
Entering edit mode

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
ADD REPLY

Login before adding your answer.

Traffic: 3131 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6