On 16/12/2020 10:21 a.m., Knut Krueger wrote:
Am 15.12.20 um 14:37 schrieb Duncan Murdoch:

thank you for your answer

You should not have

@importFrom XLConnect createSheet writeWorksheet saveWorkbook

in your ROxygen comments; that results in an unconditional import.
Instead, you should use fully qualified calls each time, i.e.

XLConnect::createSheet, XLConnect::writeWorksheet, XLConnect::saveWorkbook


#' @importFrom XLConnect::createSheet, XLConnect::writeWorksheet,
XLConnect::saveWorkbook

This causes the error "there is no package called ‘XLConnect::createSheet,’"

No, you should drop the @importFrom comment completely, and in your R code use those fully qualified forms.

Duncan Murdoch

______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Reply via email to