R install package loaded namespace

后端 未结 3 1239
迷失自我
迷失自我 2021-01-21 08:09

I would like to install the package plotly in RStudio and got a error message.

install.packages(\"~/Desktop/plotly_4.5.2.tar.gz\", repos = NULL, type = \"source\

3条回答
  •  被撕碎了的回忆
    2021-01-21 08:50

    I use devtools to install the Rcpp:

    devtools::install_github("RcppCore/Rcpp")
    

    Then the version of Rcpp has changed:

    > packageVersion("Rcpp")
    [1] ‘1.0.1’
    

    And I load the tidyverse and see it is successfull.

    > library(tidyverse)
    ── Attaching packages ─────────────────────────────────────── tidyverse 1.2.1 ──
    ✔ ggplot2 3.0.0       ✔ purrr   0.2.5  
    ✔ tibble  2.1.1       ✔ dplyr   0.8.0.1
    ✔ tidyr   0.8.1       ✔ stringr 1.3.1  
    ✔ readr   1.1.1       ✔ forcats 0.3.0  
    ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
    ✖ dplyr::filter() masks stats::filter()
    ✖ dplyr::lag()    masks stats::lag()
    

提交回复
热议问题