devtools安装github忽略某些.rda文件

时间:2016-06-03 02:50:31

标签: r devtools

我目前正在测试我的R个包,其.rda个文件夹中有两个data/个文件,可以找到here。它们是使用devtools::use_data命令创建的。它们不是非常大的文件,最大的文件是713 KB。我尝试使用devtoolsGitHub安装我的软件包:

devtools::install.github('sahirbhatnagar/manhattanly')

但由于某些原因,只安装了两个.rda文件中的一个(hapmap.rda文件未安装):

 
devtools::install_github('sahirbhatnagar/manhattanly', force = TRUE, build_vignette = TRUE)
Downloading GitHub repo sahirbhatnagar/manhattanly@master
from URL https://api.github.com/repos/sahirbhatnagar/manhattanly/zipball/master
Installing manhattanly
'/usr/lib64/R/bin/R' --no-site-file --no-environ --no-save --no-restore CMD build  \
  '/tmp/RtmpEYJ9AG/devtools84183fc48b7d/sahirbhatnagar-manhattanly-0dead52' --no-resave-data --no-manual 

* checking for file ‘/tmp/RtmpEYJ9AG/devtools84183fc48b7d/sahirbhatnagar-manhattanly-0dead52/DESCRIPTION’ ... OK
* preparing ‘manhattanly’:
* checking DESCRIPTION meta-information ... OK
* installing the package to build vignettes
* creating vignettes ... OK
* checking for LF line-endings in source and make files
* checking for empty or unneeded directories
* looking to see if a ‘data/datalist’ file should be added
* building ‘manhattanly_0.1.0.tar.gz’

'/usr/lib64/R/bin/R' --no-site-file --no-environ --no-save --no-restore CMD INSTALL '/tmp/RtmpEYJ9AG/manhattanly_0.1.0.tar.gz'  \
  --library='/mnt/GREENWOOD_BACKUP/home/sahir.bhatnagar/Rlibs/R3.2.2' --install-tests 

* installing *source* package ‘manhattanly’ ...
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
Note: the specification for S3 class “AsIs” in package ‘DBI’ seems equivalent to one from package ‘jsonlite’: not turning on duplicate class definitions for this class.
** help
*** installing help indices
  converting help for package ‘manhattanly’
    finding HTML links ... done
    manhattanly                             html  

    finding level-2 HTML links ... done

    manhattanr                              html  
    qqly                                    html  
    qqr                                     html  
    significantSNP                          html  
** building package indices
** installing vignettes
** testing if installed package can be loaded
Note: the specification for S3 class “AsIs” in package ‘DBI’ seems equivalent to one from package ‘jsonlite’: not turning on duplicate class definitions for this class.
* DONE (manhattanly)

当我尝试使用devtools::check()检查包时,我在尝试构建插图时也会收到错误,并说找不到hapmap对象。

知道为什么会这样吗? .csv file不是那么大~2.2 Mb

1 个答案:

答案 0 :(得分:2)

您的.Rbuildignore文件有一行:

@ECHO OFF



SET URL="http://......."
SET INPUT_FILE=%1_SetClienti_in.xml
SET OUTPUT_FILE=%1_SetClienti_out.xml
SET CURLEXE="curl.exe"

SET INPUT=%INPUT_FILE%
SET OUTPUT=%OUTPUT_FILE%

%CURLEXE%^
 --silent^
 --insecure^
 -H "Content-Type: text/xml;charset=UTF-8;Accept: application/xml"^
  -d @%INPUT%^
 -X POST^
 %URL%^
 -o %OUTPUT%

因为这些被视为正则表达式,所以你要告诉R忽略那个正则表达式模式也匹配的hapmap.rds文件。只需使用$或前缀来更新目录名称即可限制正则表达式。