Skip to content

R CMD check note: not imported from lifecycle #22

@florianm

Description

@florianm

Hi, thanks for this fantastic package!

I've ran usethis::use_lifecycle() and use the \lifecycle{...} badges in my function docs.
I'm getting a NOTE from R CMD check:

N  checking dependencies in R code (401ms)
   Namespace in Imports field not imported from: ‘lifecycle’
     All declared Imports should be used.

Related: in addition to above NOTE, goodpractice also raises #19, output see details.

What's the cleanest way to fix this NOTE?

sessionInfo and goodpractice

> sessionInfo()
R version 3.6.1 (2019-07-05)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 19.04

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.8.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.8.0

locale:
 [1] LC_CTYPE=en_AU.UTF-8       LC_NUMERIC=C               LC_TIME=en_AU.UTF-8        LC_COLLATE=en_AU.UTF-8     LC_MONETARY=en_AU.UTF-8    LC_MESSAGES=en_AU.UTF-8   
 [7] LC_PAPER=en_AU.UTF-8       LC_NAME=C                  LC_ADDRESS=C               LC_TELEPHONE=C             LC_MEASUREMENT=en_AU.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] ruODK_0.6.5        usethis_1.5.1.9000

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.2         xmlparsedata_1.0.2 compiler_3.6.1     prettyunits_1.0.2  remotes_2.1.0      tools_3.6.1        digest_0.6.21      packrat_0.5.0     
 [9] pkgbuild_1.0.5     jsonlite_1.6       praise_1.0.0       pkgconfig_2.0.3    rlang_0.4.0        igraph_1.2.4.1     rex_1.1.2          whoami_1.3.0      
[17] cli_1.1.0          rstudioapi_0.10    curl_4.1           xfun_0.9           xopen_1.0.0        cyclocomp_1.1.0    stringr_1.4.0      knitr_1.25        
[25] withr_2.1.2        httr_1.4.1         xml2_1.2.2         desc_1.2.0         fs_1.3.1           rprojroot_1.3-2    glue_1.3.1         R6_2.4.0          
[33] processx_3.4.1     rcmdcheck_1.3.3    callr_3.3.2        lintr_1.0.3        covr_3.3.1         magrittr_1.5       backports_1.1.4    ps_1.3.0          
[41] clisymbols_1.2.0   assertthat_0.2.1   goodpractice_1.0.2 stringi_1.4.3      lazyeval_0.2.2     crayon_1.3.4      

Output from goodpractice::goodpractice():

── GP ruODK ───────────────────────────────

It is good practice tofix this R CMD check NOTE: Namespace in Imports field not imported from:lifecycleAll declared Imports should be used.
────────────────────────────────────────
There were 43 warnings (use warnings() to see them)

warnings()
# brings one of these per use of \lifecycle{} macro
In parse_Rd("/home/florian/projects/ruODK/man/yell_if_missing.Rd",  ... :
  /home/florian/projects/ruODK/man/yell_if_missing.Rd:21: unknown macro '\lifecycle'
> 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions