1

I am building a package based on shiny and I get the following error message:

Warning: replacing previous import ‘DT::dataTableOutput’ by ‘shiny::dataTableOutput’ when loading ‘StatisticTeach1’
     Warning: replacing previous import ‘DT::renderDataTable’ by ‘shiny::renderDataTable’ when loading ‘StatisticTeach1’

Although I make the suggested changes the problem persist

Phil
  • 7,287
  • 3
  • 36
  • 66
JAVIER
  • 11
  • 1
  • It will be easier to help you if you provide a reproducible example: https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example – Mel G Jul 19 '22 at 21:10
  • This is a warning message, not an error message. – Phil Jul 19 '22 at 21:42
  • Possible duplicate of https://stackoverflow.com/a/71927778/5221626 – Phil Jul 19 '22 at 21:43
  • From [here](https://rstudio.github.io/DT/shiny.html): Note that in `DT`, `DTOutput()` is an alias of `dataTableOutput()`, and `renderDT()` is an alias of `renderDataTable()`. You are recommended to use `DTOutput()` and `renderDT()` to avoid possible collisions with functions of the same names in `shin`y (`shiny::dataTableOutput()` and `shiny::renderDataTable()`). – Limey Jan 13 '23 at 19:21

1 Answers1

0

You can use the following namespace

#' @rawNamespace import(shiny, except=c(dataTableOutput, renderDataTable))
Wang
  • 1,314
  • 14
  • 21