I want to use another package A in my package, so I've added the roxygen comment
#' @importFrom packageA functionB
However, only when pacakgeA is attached (doing something like library(packageA)) then functions in it can be used, otherwise it will return errors like 'cannot connect to the server'.
So is there a way to import and attach the package? Thanks.