Closed wkdavis closed 4 years ago
I found that when warnings or messages are printed after the output of import_from() the messages are concatenated to the last importFrom line. For example,
import_from()
importFrom
> for(f in c(shinyWidgets::dropdownButton,shinyWidgets::prettySwitch)) { + import_from(f) + } #' @importFrom htmltools validateCssUnit tags#' @importFrom htmltools validateCssUnit #' @importFrom shiny restoreInput > import_from2 <- function(f) { + import_from(f) + message("importFrom complete!") + } > import_from2(shinyWidgets::dropdownButton) #' @importFrom htmltools validateCssUnit tagsimportFrom complete!
Adding an additional carriage return forces subsequent output to the next line.
> for(f in c(shinyWidgets::dropdownButton,shinyWidgets::prettySwitch)) { + import_from(f) + } #' @importFrom htmltools validateCssUnit tags #' @importFrom htmltools validateCssUnit #' @importFrom shiny restoreInput > import_from2 <- function(f) { + import_from(f) + message("importFrom complete!") + } > import_from2(shinyWidgets::dropdownButton) #' @importFrom htmltools validateCssUnit tags importFrom complete!
Thanks for the fix ! 👍 Victor
I found that when warnings or messages are printed after the output of
import_from()
the messages are concatenated to the lastimportFrom
line. For example,Adding an additional carriage return forces subsequent output to the next line.