首页 > 解决方案 > 无法安装“baseballr”包

问题描述

我正在使用以下代码baseballr从 GitHub 安装包:

require(devtools)
install_github("BillPetti/baseballr")
require(baseballr)

但是,我在运行时不断收到以下错误require(baseballr)

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

另外,当我运行时install_github("BillPetti/baseballr"),我收到以下错误:

package ‘glue’ successfully unpacked and MD5 sums checked
Error: (converted from warning) cannot remove prior installation of package ‘glue’
In addition: Warning messages:
1: In untar2(tarfile, files, list, exdir) :
  skipping pax global extended headers
2: In untar2(tarfile, files, list, exdir) :
  skipping pax global extended headers

devtools已正确安装,但我只是不确定为什么baseballr无法正确安装。可以在此处找到该软件包的文档。

标签: rdevtools

解决方案


推荐阅读