devtools 安装 github 忽略某些 .rda 文件
devtools install github ignoring certain .rda files
我目前正在测试我的 R
包,它在 data/
文件夹中有两个 .rda
文件,可以使用 devtools
here. They were created using the devtools::use_data
command. They are not very large files, the largest one being 713 KB. I'm trying to install my package from GitHub 找到它们:
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
您的 .Rbuildignore 文件有一行:
hapmap.R
因为这些被视为正则表达式,所以您告诉 R 忽略 hapmap.rds 文件,该正则表达式模式也匹配。只需使用 $ 更新它或在目录名称前加上前缀以限制正则表达式。
我目前正在测试我的 R
包,它在 data/
文件夹中有两个 .rda
文件,可以使用 devtools
here. They were created using the devtools::use_data
command. They are not very large files, the largest one being 713 KB. I'm trying to install my package from GitHub 找到它们:
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
您的 .Rbuildignore 文件有一行:
hapmap.R
因为这些被视为正则表达式,所以您告诉 R 忽略 hapmap.rds 文件,该正则表达式模式也匹配。只需使用 $ 更新它或在目录名称前加上前缀以限制正则表达式。