Upcoming NAMESPACE, Depends, Imports changes for 2.14.0 (some definitions/use please)

前端 未结 4 873
不知归路
不知归路 2020-12-31 09:32

If you are a package author, you are hopefully well aware of upcoming changes in package structure when we move to 2.14 in about a week. One of the changes is that all pack

4条回答
  •  再見小時候
    2020-12-31 09:45

    CRAN packages have had NAMESPACEs since almost time immortal. Just pick a few of your favorite CRAN packages and look at their NAMESPACE files.

    It can be as easy as this one-liner (plus comment) taken from snow:

    # Export all names unless they start with a dot
    exportPattern("^[^.]")
    

    The run R CMD check as usual, and you should be fine in most circumstances.

提交回复
热议问题