On 25 February 2018 at 00:45, Marius Hofert wrote: | A package 'foo' uses a package 'bar' (in Imports). 'bar' has been | archived and the maintainer of 'foo' was asked to fix the dependency | on 'bar' according to WRE 1.1.3.1. | | Working with 'bar::' everywhere (and requireNamespace("bar", quietly = | TRUE)), as well as moving 'bar' from Imports to Suggests seems to work | but is not accepted on submission. Removing 'bar' also from Suggests | leads to | | '::' or ':::' import not declared from: ‘bar’ | 'loadNamespace' or 'requireNamespace' call not declared from: ‘bar’ | | Does this mean it is not possible to use 'bar' anymore in 'foo'?
Your title says "conditionally". Does your code actually behave conditionally, ie does foo check if bar is available, and only use its code if it is? One additional difficulty may be that even for Suggests, it still has to be accessible "somewhere" . And "archived" is not. You could just move bar onto a drat repo you set yp -- we have done the same for data packages and have a R Journal paper describing it: https://journal.r-project.org/archive/2017/RJ-2017-026/index.html Hth, Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel