Building a vignette

ⅰ亾dé卋堺 提交于 2019-12-08 06:17:20

问题


I was developing a package when I found a new error when building the package.The error makes reference to a line that previously didn't have any problem and I didn't modify. However it run smoothly in a fresh R session when I ran the code or knit the vignette alone.

Long story short: I found that this error happens when a suggested package (by my package's DESCRIPTION) is loaded before my package.

How can I control this?

The reason of the error is that my package (A) has a function is named exactly the same as the other package (B) because it does the same kind of process, but I use a different name for the same arguments (and in my version I provide other arguments as well). A solution I found is to use A::function, but that would be uglier to the reader. Is there any other solution?

This didn't happened in previous cycles of development. I have observed it on the latest R version R version 3.4.3 (2017-11-30) -- "Kite-Eating Tree" and in the devel version of R. The packages are build using both R CMD build package and devtools::check() The conflicting package is in Suggests: part of the DESCRIPTION file of the package

This question might be related to this other one.

来源:https://stackoverflow.com/questions/49002455/building-a-vignette

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!