Namespace dependencies not required

后端 未结 2 1040
旧时难觅i
旧时难觅i 2020-12-05 03:45

I am trying to build an R package so reading the manual on CRAN. I could figure out that using imports to load functions in your namespace would be the best bet to use in th

2条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-05 04:34

    A simple reason this can happen is if you accidentally used commas when declaring @import in any/all of your functions

    E.g. this

    #'
    #' @import rvest, dplyr, stringr, jsonlite
    #'
    #' @export
    #'
    

    would change to this

    #'
    #' @import rvest dplyr stringr jsonlite
    #'
    #' @export
    #'
    

    This is a common error since packages are comma-separated in the DESCRIPTION file

提交回复
热议问题