在RStudio中安装graph3d时出现问题

时间:2017-11-18 03:54:56

标签: r installation

尝试安装 graph3d 我收到了错误消息

  > require("graph3d")

Loading required package: graph3d
Warning message:
In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
  there is no package called 'graph3d'

    > version
               _                           
platform       x86_64-w64-mingw32          
arch           x86_64                      
os             mingw32                     
system         x86_64, mingw32             
status                                     
major          3                           
minor          4.1                         
year           2017                        
month          06                          
day            30                          
svn rev        72865                       
language       R                           
version.string R version 3.4.1 (2017-06-30)
nickname       Single Candle               
>

在使用旧版R的另一台计算机上,我收到错误消息

    > version
               _                           
platform       x86_64-w64-mingw32          
arch           x86_64                      
os             mingw32                     
system         x86_64, mingw32             
status                                     
major          3                           
minor          2.5                         
year           2016                        
month          04                          
day            14                          
svn rev        70478                       
language       R                           
version.string R version 3.2.5 (2016-04-14)
nickname       Very, Very Secure Dishes    

    > require("graph3d")
    > 

返回较新版本并使用install.packages命令生成以下消息

>install.packages("graph3d")

将包安装到'C:/Users/XXXXXXXXX/Documents/R/win-library/3.4' (因为' lib'未指定) install.packages中的警告:

 package 'graph3d' is not available (for R version 3.4.1)
>

1 个答案:

答案 0 :(得分:1)

尝试通过devtools安装它,这对我有用:

if(!require(devtools)) install.packages("devtools")
devtools::install_github("kassambara/graph3d")