我正在开发一个包,我正在使用devtools来检查包的功能。我从devtools的两个函数中得到了一些矛盾的结果。当我使用<ion-header no-border>
<ion-navbar color="white">
<button ion-button menuToggle> <!--menuToggle removed and ion button hidden. You don't wanna show menu when they are yet to sign in-->
<ion-icon name="menu"></ion-icon>
</button>
<ion-title>Login</ion-title>
</ion-navbar>
函数检查示例是否正常工作时,它完成没有任何错误。但是,当我使用devtools::run_example
时,它在检查示例步骤中失败,即
devtools::check
所以我不确定为什么我从这两个函数得到矛盾的结果。特别是* using R version 3.4.1 (2017-06-30)
* using platform: x86_64-apple-darwin15.6.0 (64-bit)
* using session charset: UTF-8
* using options ‘--no-manual --as-cran’
* checking for file ‘scmeth/DESCRIPTION’ ... OK
* checking extension type ... Package
* this is package ‘scmeth’ version ‘0.99.2’
* checking package namespace information ... OK
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking if there is a namespace ... OK
* checking for executable files ... OK
* checking for hidden files and directories ... OK
* checking for portable file names ... OK
* checking for sufficient/correct file permissions ... OK
* checking whether package ‘scmeth’ can be installed ... OK
* checking installed package size ... OK
* checking package directory ... OK
* checking ‘build’ directory ... OK
* checking DESCRIPTION meta-information ... OK
* checking top-level files ... OK
* checking for left-over files ... OK
* checking index information ... OK
* checking package subdirectories ... OK
* checking R files for non-ASCII characters ... OK
* checking R files for syntax errors ... OK
* checking whether the package can be loaded ... OK
* checking whether the package can be loaded with stated dependencies ... OK
* checking whether the package can be unloaded cleanly ... OK
* checking whether the namespace can be loaded with stated dependencies ... OK
* checking whether the namespace can be unloaded cleanly ... OK
* checking dependencies in R code ... OK
* checking S3 generic/method consistency ... OK
* checking replacement functions ... OK
* checking foreign function calls ... OK
* checking R code for possible problems ... OK
* checking Rd files ... OK
* checking Rd metadata ... OK
* checking Rd line widths ... OK
* checking Rd cross-references ... OK
* checking for missing documentation entries ... OK
* checking for code/documentation mismatches ... OK
* checking Rd \usage sections ... OK
* checking Rd contents ... OK
* checking for unstated dependencies in examples ... OK
* checking installed files from ‘inst/doc’ ... OK
* checking files in ‘vignettes’ ... OK
* checking examples ... ERROR
函数抱怨它无法从我在DESCRIPTION文件中导入的库中找到某个函数。
包装说明如下
check
这是一个bioconductor包,代码无法说Version: 0.99.2
Depends: R (>= 3.4.0)
Imports:
ggplot2,
knitr,
bsseq,
AnnotationHub,
Repitools,
GenomicRanges,
reshape2,
stats,
utils,
BSgenome,
DelayedArray,
annotatr(>= 1.2.1),
SummarizedExperiment,
GenomeInfoDb
Suggests:
rmarkdown,
BSgenome.Mmusculus.UCSC.mm10,
BSgenome.Hsapiens.NCBI.GRCh38,
Biobase,
BiocGenerics,
Biostrings,
DT
这是annotatr包中的一个函数,我在我的描述中导入它。